Skip to content

Commit 7cfd529

Browse files
committed
Fix link to WebIDL "throw" and update ref to WebIDL to target Second Level
The <dfn> tags were incorrectly surrounding "term" instead of "throw". Also, as alluded to in w3c#295, "NotAllowedError" is only defined in "WebIDL (Second Level)", and the spec referenced "WebIDL Level 1". I'm not clear at this stage whether "NotAllowedError" will make it to Level 1, but it seems better to reference Level 2 in the meantime.
1 parent 3108470 commit 7cfd529

File tree

1 file changed

+43
-25
lines changed

1 file changed

+43
-25
lines changed

index.html

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@
9797
'YouTube'
9898
],
9999
publisher: 'Netflix'
100+
},
101+
WEBIDL: {
102+
title: 'Web IDL (Second Edition)',
103+
href: 'https://heycam.github.io/webidl/',
104+
status: 'ED',
105+
authors: [
106+
'Cameron McCormack',
107+
'Boris Zbarsky'
108+
]
100109
}
101110
},
102111
issueBase: "https://www.github.com/w3c/presentation-api/issues/"
@@ -143,7 +152,7 @@
143152
</p>
144153
</section>
145154
<section id="sotd">
146-
<p>
155+
<p>
147156
Since publication as Working Draft on <a href=
148157
"https://www.w3.org/TR/2016/WD-presentation-api-20160211/">11 February
149158
2016</a>, the Working Group has further refined some of the procedures,
@@ -356,37 +365,45 @@ <h2>
356365
([[!WEBIDL]]). The terms <dfn><a href=
357366
"https://heycam.github.io/webidl/#idl-promise">Promise</a></dfn>,
358367
<dfn><a href=
359-
"http://heycam.github.io/webidl/#idl-ArrayBuffer">ArrayBuffer</a></dfn>,
368+
"https://heycam.github.io/webidl/#idl-ArrayBuffer">ArrayBuffer</a></dfn>,
360369
<dfn><a href=
361-
"http://heycam.github.io/webidl/#idl-ArrayBufferView">ArrayBufferView</a></dfn>
370+
"https://heycam.github.io/webidl/#idl-ArrayBufferView">ArrayBufferView</a></dfn>
362371
are defined in [[!WEBIDL]].
363372
</p>
364373
<p>
365-
The <dfn>term</dfn> throw in this specification is used as defined in
366-
[[!WEBIDL]]. The following exception names are defined by WebIDL and
367-
used by this specification:
374+
The term <dfn><a href=
375+
"https://heycam.github.io/webidl/#dfn-throw">throw</a></dfn> in this
376+
specification is used as defined in [[!WEBIDL]]. The following
377+
exception names are defined by WebIDL and used by this specification:
368378
</p>
369379
<ul>
370380
<li>
371-
<dfn><code>NotAllowedError</code></dfn>
381+
<dfn><code><a href=
382+
"https://heycam.github.io/webidl/#notallowederror">NotAllowedError</a></code></dfn>
372383
</li>
373384
<li>
374-
<dfn><code>InvalidAccessError</code></dfn>
385+
<dfn><code><a href=
386+
"https://heycam.github.io/webidl/#invalidaccesserror">InvalidAccessError</a></code></dfn>
375387
</li>
376388
<li>
377-
<dfn><code>NotFoundError</code></dfn>
389+
<dfn><code><a href=
390+
"https://heycam.github.io/webidl/#notfounderror">NotFoundError</a></code></dfn>
378391
</li>
379392
<li>
380-
<dfn><code>NotSupportedError</code></dfn>
393+
<dfn><code><a href=
394+
"https://heycam.github.io/webidl/#notsupportederror">NotSupportedError</a></code></dfn>
381395
</li>
382396
<li>
383-
<dfn><code>OperationError</code></dfn>
397+
<dfn><code><a href=
398+
"https://heycam.github.io/webidl/#operationerror">OperationError</a></code></dfn>
384399
</li>
385400
<li>
386-
<dfn><code>SecurityError</code></dfn>
401+
<dfn><code><a href=
402+
"https://heycam.github.io/webidl/#securityerror">SecurityError</a></code></dfn>
387403
</li>
388404
<li>
389-
<dfn><code>SyntaxError</code></dfn>
405+
<dfn><code><a href=
406+
"https://heycam.github.io/webidl/#syntaxerror">SyntaxError</a></code></dfn>
390407
</li>
391408
</ul>
392409
<p>
@@ -944,8 +961,8 @@ <h4>
944961
by the entry <a>settings object</a>, and let
945962
<var>presentationUrl</var> be the resulting absolute URL, if any.
946963
</li>
947-
<li>If the resolve a URL algorithm failed, then throw a
948-
<a>SyntaxError</a> exception and abort the remaining steps.
964+
<li>If the resolve a URL algorithm failed, then <a>throw</a> a <a>
965+
SyntaxError</a> exception and abort the remaining steps.
949966
</li>
950967
<li>Construct a new <code>PresentationRequest</code> object with
951968
<var>presentationUrl</var> as the constructor argument and return
@@ -990,8 +1007,8 @@ <h4>
9901007
</li>
9911008
<li>If the result of the algorithm is <code>"Prohibits Mixed
9921009
Security Contexts"</code> and <var>presentationUrl</var> is an <a>
993-
a priori unauthenticated URL</a>, then return a <a>Promise</a>
994-
rejected with a <a>SecurityError</a> and abort these steps.
1010+
a priori unauthenticated URL</a>, then return a <a>Promise</a>
1011+
rejected with a <a>SecurityError</a> and abort these steps.
9951012
</li>
9961013
<li>If the document object's <a>active sandboxing flag set</a> has
9971014
the <a>sandboxed presentation browsing context flag</a> set, then
@@ -1418,18 +1435,19 @@ <h4>
14181435
<ol>
14191436
<li>If one of the following conditions is true:
14201437
<ul>
1421-
<li>The result of running the <a>prohibits mixed security
1438+
<li>The result of running the <a>prohibits mixed security
14221439
contexts algorithm</a> on the document's <a>settings object</a>
1423-
is <code>"Prohibits Mixed Security Contexts"</code> and <var>
1424-
presentationUrl</var> is an <a>a priori unauthenticated URL</a>.
1440+
is <code>"Prohibits Mixed Security Contexts"</code> and
1441+
<var>presentationUrl</var> is an <a>a priori unauthenticated
1442+
URL</a>.
14251443
</li>
14261444
<li>The document object's <a>active sandboxing flag set</a> has
14271445
the <a>sandboxed presentation browsing context flag</a> set.
14281446
</li>
1429-
</ul>
1430-
Run the following substeps:
1447+
</ul>Run the following substeps:
14311448
<ol>
1432-
<li>Return a <a>Promise</a> rejected with a <a>SecurityError</a>.
1449+
<li>Return a <a>Promise</a> rejected with a
1450+
<a>SecurityError</a>.
14331451
</li>
14341452
<li>Abort these steps.
14351453
</li>
@@ -1845,8 +1863,8 @@ <h4>
18451863
<ol link-for="PresentationConnection">
18461864
<li>If the <a>state</a> property of
18471865
<var>presentationConnection</var> is not <a for=
1848-
"PresentationConnectionState">connected</a>, throw an
1849-
<code>InvalidStateError</code> exception.
1866+
"PresentationConnectionState">connected</a>, <a>throw</a> an <code>
1867+
InvalidStateError</code> exception.
18501868
</li>
18511869
<li>If the <a>closing procedure</a> of
18521870
<var>presentationConnection</var> has started, then abort these

0 commit comments

Comments
 (0)