← 返回首页
Update WebIDL usage and fix Respec errors by chrisn · Pull Request #469 · w3c/presentation-api · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .html  (1) All 1 file type selected Viewed files
Conversations
Failed to load comments. Retry
Loading
Jump to
Jump to file
Failed to load files. Retry
Loading
Diff view
Unified
Split
Hide whitespace
Apply and reload
Show whitespace
Diff view
Unified
Split
Hide whitespace
Apply and reload
30 changes: 12 additions & 18 deletions index.html
Show comments View file Edit file Delete file Open in desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ <h2>
</li>
<li>
<a href=
"https://html.spec.whatwg.org/multipage/system-state.html#navigator"><dfn>
<code>Navigator</code></dfn></a>
"https://html.spec.whatwg.org/multipage/system-state.html#navigator">
<dfn><code>Navigator</code></dfn></a>
</li>
<li>
<dfn><a href=
Expand Down Expand Up @@ -1219,19 +1219,17 @@ <h3>
Interface <dfn>PresentationRequest</dfn>
</h3>
<pre class="idl">
[Constructor(USVString url),
Constructor(sequence&lt;USVString&gt; urls),
SecureContext, Exposed=Window]
[SecureContext, Exposed=Window]
interface PresentationRequest : EventTarget {
constructor(USVString url);
constructor(sequence&lt;USVString&gt; urls);
Promise&lt;PresentationConnection&gt; start();
Promise&lt;PresentationConnection&gt; reconnect(USVString presentationId);
Promise&lt;PresentationAvailability&gt; getAvailability();

attribute EventHandler onconnectionavailable;
};


</pre>
</pre>
<p>
A <a><code>PresentationRequest</code></a> object is associated with a
request to initiate or reconnect to a presentation made by a
Expand Down Expand Up @@ -2078,18 +2076,16 @@ <h4>
Interface <dfn>PresentationConnectionAvailableEvent</dfn>
</h4>
<pre class="idl">
[Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict),
SecureContext, Exposed=Window]
[SecureContext, Exposed=Window]
interface PresentationConnectionAvailableEvent : Event {
constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict);
[SameObject] readonly attribute PresentationConnection connection;
};

dictionary PresentationConnectionAvailableEventInit : EventInit {
required PresentationConnection connection;
};


</pre>
</pre>
<p>
A <a>controlling user agent</a> <a>fires</a> a <a>trusted event</a>
named <a data-link-for=
Expand Down Expand Up @@ -2527,9 +2523,9 @@ <h4>
<pre class="idl">
enum PresentationConnectionCloseReason { "error", "closed", "wentaway" };

[Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
SecureContext, Exposed=Window]
[SecureContext, Exposed=Window]
interface PresentationConnectionCloseEvent : Event {
constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict);
readonly attribute PresentationConnectionCloseReason reason;
readonly attribute DOMString message;
};
Expand All @@ -2538,9 +2534,7 @@ <h4>
required PresentationConnectionCloseReason reason;
DOMString message = "";
};


</pre>
</pre>
<p>
A <a>PresentationConnectionCloseEvent</a> is fired when a
<a>presentation connection</a> enters a <a data-link-for=
Expand Down
Toggle all file notes Toggle all file annotations

Footer

© 2026 GitHub, Inc.