|
1214 | 1214 | </style>
|
1215 | 1215 | <meta content="Bikeshed version 0dd2bba6dfda6c3168490a3a3044dd1d0b1ef8e0" name="generator">
|
1216 | 1216 | <link href="https://w3c.github.io/webappsec-trusted-types/dist/spec/" rel="canonical">
|
1217 |
| - <meta content="59ce043cf237a8efa16bc9d991692ba679cdb11a" name="document-revision"> |
| 1217 | + <meta content="3a9de45677cb0879b0bc2385f8de2a3da3682203" name="document-revision"> |
1218 | 1218 | <style>/* style-md-lists */
|
1219 | 1219 |
|
1220 | 1220 | /* This is a weird hack for me not yet following the commonmark spec
|
@@ -2351,6 +2351,9 @@ <h3 class="heading settled" data-level="3.1" id="create-trusted-type-policy-algo
|
2351 | 2351 | creation be blocked by Content Security Policy?</a> algorithm with <var>global</var>, <var>policyName</var> and <var>factory</var>’s <code>[[CreatedPolicyNames]]</code> slot value.</p>
|
2352 | 2352 | <li data-md>
|
2353 | 2353 | <p>If <var>allowedByCSP</var> is <code>"Blocked"</code>, throw a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#exceptiondef-typeerror" id="ref-for-exceptiondef-typeerror">TypeError</a></code> and abort further steps.</p>
|
| 2354 | + <li data-md> |
| 2355 | + <p>If <var>policyName</var> is <code>default</code> and the <var>factory</var>’s <code>[[DefaultPolicy]]</code> slot |
| 2356 | +value is not empty, throw a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#exceptiondef-typeerror" id="ref-for-exceptiondef-typeerror①">TypeError</a></code> and abort further steps.</p> |
2354 | 2357 | <li data-md>
|
2355 | 2358 | <p>Let <var>policy</var> be a new <code class="idl"><a data-link-type="idl" href="#trustedtypepolicy" id="ref-for-trustedtypepolicy①⓪">TrustedTypePolicy</a></code> object.</p>
|
2356 | 2359 | <li data-md>
|
@@ -2399,7 +2402,7 @@ <h3 class="heading settled" data-level="3.2" id="create-a-trusted-type-algorithm
|
2399 | 2402 | <li data-md>
|
2400 | 2403 | <p>Let <var>function</var> be the value of the property in <var>options</var> named <var>functionName</var>.</p>
|
2401 | 2404 | <li data-md>
|
2402 |
| - <p>If <var>function</var> is <code>null</code>, throw a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#exceptiondef-typeerror" id="ref-for-exceptiondef-typeerror①">TypeError</a></code>.</p> |
| 2405 | + <p>If <var>function</var> is <code>null</code>, throw a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#exceptiondef-typeerror" id="ref-for-exceptiondef-typeerror②">TypeError</a></code>.</p> |
2403 | 2406 | <li data-md>
|
2404 | 2407 | <p>Let <var>policyValue</var> be the result of invoking <var>function</var> with <var>value</var> as a first argument, items of <var>arguments</var> as subsequent arguments,
|
2405 | 2408 | and <a href="https://tc39.es/ecma262/#sec-method">callback **this** value</a> set to <code>null</code>.</p>
|
@@ -2448,7 +2451,7 @@ <h3 class="heading settled" data-level="3.3" id="get-trusted-type-compliant-stri
|
2448 | 2451 | <p>If <var>disposition</var> is <code>“Allowed”</code>, return stringified <var>input</var> and abort futher steps.</p>
|
2449 | 2452 | <p class="note" role="note"><span>Note:</span> This step assures that the default policy rejection will be reported, but ignored in a report-only mode.</p>
|
2450 | 2453 | <li data-md>
|
2451 |
| - <p>Throw a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#exceptiondef-typeerror" id="ref-for-exceptiondef-typeerror②">TypeError</a></code> and abort further steps.</p> |
| 2454 | + <p>Throw a <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#exceptiondef-typeerror" id="ref-for-exceptiondef-typeerror③">TypeError</a></code> and abort further steps.</p> |
2452 | 2455 | </ol>
|
2453 | 2456 | <li data-md>
|
2454 | 2457 | <p class="assertion">Assert: <var>convertedInput</var> has type <var>expectedType</var>.</p>
|
@@ -3911,9 +3914,9 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
|
3911 | 3914 | <aside class="dfn-panel" data-for="term-for-exceptiondef-typeerror">
|
3912 | 3915 | <a href="https://heycam.github.io/webidl/#exceptiondef-typeerror">https://heycam.github.io/webidl/#exceptiondef-typeerror</a><b>Referenced in:</b>
|
3913 | 3916 | <ul>
|
3914 |
| - <li><a href="#ref-for-exceptiondef-typeerror">3.1. Create a Trusted Type Policy</a> |
3915 |
| - <li><a href="#ref-for-exceptiondef-typeerror①">3.2. Create a Trusted Type</a> |
3916 |
| - <li><a href="#ref-for-exceptiondef-typeerror②">3.3. Get Trusted Type compliant string</a> |
| 3917 | + <li><a href="#ref-for-exceptiondef-typeerror">3.1. Create a Trusted Type Policy</a> <a href="#ref-for-exceptiondef-typeerror①">(2)</a> |
| 3918 | + <li><a href="#ref-for-exceptiondef-typeerror②">3.2. Create a Trusted Type</a> |
| 3919 | + <li><a href="#ref-for-exceptiondef-typeerror③">3.3. Get Trusted Type compliant string</a> |
3917 | 3920 | </ul>
|
3918 | 3921 | </aside>
|
3919 | 3922 | <aside class="dfn-panel" data-for="term-for-idl-USVString">
|
|
0 commit comments