Skip to content

Commit a76a31e

Browse files
chrisnmarkafoltz
authored andcommitted
Update WebIDL usage and fix Respec errors (#469)
- Fix Navigator reference - Use constructor operations Resolves #466
1 parent 5f5a8f3 commit a76a31e

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

index.html

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ <h2>
403403
</li>
404404
<li>
405405
<a href=
406-
"https://html.spec.whatwg.org/multipage/system-state.html#navigator"><dfn>
407-
<code>Navigator</code></dfn></a>
406+
"https://html.spec.whatwg.org/multipage/system-state.html#navigator">
407+
<dfn><code>Navigator</code></dfn></a>
408408
</li>
409409
<li>
410410
<dfn><a href=
@@ -1219,19 +1219,17 @@ <h3>
12191219
Interface <dfn>PresentationRequest</dfn>
12201220
</h3>
12211221
<pre class="idl">
1222-
[Constructor(USVString url),
1223-
Constructor(sequence&lt;USVString&gt; urls),
1224-
SecureContext, Exposed=Window]
1222+
[SecureContext, Exposed=Window]
12251223
interface PresentationRequest : EventTarget {
1224+
constructor(USVString url);
1225+
constructor(sequence&lt;USVString&gt; urls);
12261226
Promise&lt;PresentationConnection&gt; start();
12271227
Promise&lt;PresentationConnection&gt; reconnect(USVString presentationId);
12281228
Promise&lt;PresentationAvailability&gt; getAvailability();
12291229

12301230
attribute EventHandler onconnectionavailable;
12311231
};
1232-
1233-
1234-
</pre>
1232+
</pre>
12351233
<p>
12361234
A <a><code>PresentationRequest</code></a> object is associated with a
12371235
request to initiate or reconnect to a presentation made by a
@@ -2078,18 +2076,16 @@ <h4>
20782076
Interface <dfn>PresentationConnectionAvailableEvent</dfn>
20792077
</h4>
20802078
<pre class="idl">
2081-
[Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict),
2082-
SecureContext, Exposed=Window]
2079+
[SecureContext, Exposed=Window]
20832080
interface PresentationConnectionAvailableEvent : Event {
2081+
constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict);
20842082
[SameObject] readonly attribute PresentationConnection connection;
20852083
};
20862084

20872085
dictionary PresentationConnectionAvailableEventInit : EventInit {
20882086
required PresentationConnection connection;
20892087
};
2090-
2091-
2092-
</pre>
2088+
</pre>
20932089
<p>
20942090
A <a>controlling user agent</a> <a>fires</a> a <a>trusted event</a>
20952091
named <a data-link-for=
@@ -2527,9 +2523,9 @@ <h4>
25272523
<pre class="idl">
25282524
enum PresentationConnectionCloseReason { "error", "closed", "wentaway" };
25292525

2530-
[Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
2531-
SecureContext, Exposed=Window]
2526+
[SecureContext, Exposed=Window]
25322527
interface PresentationConnectionCloseEvent : Event {
2528+
constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict);
25332529
readonly attribute PresentationConnectionCloseReason reason;
25342530
readonly attribute DOMString message;
25352531
};
@@ -2538,9 +2534,7 @@ <h4>
25382534
required PresentationConnectionCloseReason reason;
25392535
DOMString message = "";
25402536
};
2541-
2542-
2543-
</pre>
2537+
</pre>
25442538
<p>
25452539
A <a>PresentationConnectionCloseEvent</a> is fired when a
25462540
<a>presentation connection</a> enters a <a data-link-for=

0 commit comments

Comments
 (0)