You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>If <var>defaultPolicy</var> is <code>null</code>, return <code>"Blocked"</code> and abort further steps.</p>
2680
2680
<lidata-md>
2681
-
<p>Let <var>covertedScriptSource</var> be the result of executing <adata-link-type="abstract-op" href="#abstract-opdef-create-a-trusted-type" id="ref-for-abstract-opdef-create-a-trusted-type④">Create a Trusted Type</a> algorithm, with the following arguments:</p>
2681
+
<p>Let <var>convertedScriptSource</var> be the result of executing <adata-link-type="abstract-op" href="#abstract-opdef-create-a-trusted-type" id="ref-for-abstract-opdef-create-a-trusted-type④">Create a Trusted Type</a> algorithm, with the following arguments:</p>
2682
2682
<ul>
2683
2683
<lidata-md>
2684
2684
<p><var>defaultPolicy</var> as <var>policy</var></p>
<p>« <code>"Location.href"</code> » as <var>arguments</var></p>
2691
2691
</ul>
2692
2692
<lidata-md>
2693
-
<p>If <var>convertedScriptSource</var>does not have a type <codeclass="idl"><adata-link-type="idl" href="#trustedscript" id="ref-for-trustedscript①③">TrustedScript</a></code>, return <code>"Blocked"</code> and abort further steps.</p>
2693
+
<p>If <var>convertedScriptSource</var>is not a <codeclass="idl"><adata-link-type="idl" href="#trustedscript" id="ref-for-trustedscript①③">TrustedScript</a></code> object, return <code>"Blocked"</code> and abort further steps.</p>
2694
2694
<lidata-md>
2695
2695
<p>Set <var>urlString</var> to be the result of prepending <code>"javascript:"</code> to stringified <var>convertedScriptSource</var>.</p>
Copy file name to clipboardExpand all lines: spec/index.bs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1239,13 +1239,13 @@ Note: This algorithm assures that the code to be executed by a navigation to a `
1239
1239
1. Let |encodedScriptSource| be the result of removing the leading `"javascript:"` from |urlString|.
1240
1240
1. Let |defaultPolicy| be the result of executing [$Get default policy$] algorithm on |source|'s {{WindowProxy}}'s [=trusted type policy factory=].
1241
1241
1. If |defaultPolicy| is `null`, return `"Blocked"` and abort further steps.
1242
-
1. Let |covertedScriptSource| be the result of executing [$Create a Trusted Type$] algorithm, with the following arguments:
1242
+
1. Let |convertedScriptSource| be the result of executing [$Create a Trusted Type$] algorithm, with the following arguments:
1243
1243
1244
1244
* |defaultPolicy| as |policy|
1245
1245
* |encodedScriptSource| as |value|
1246
1246
* `"TrustedScript` as |trustedTypeName|
1247
1247
* « `"Location.href"` » as |arguments|
1248
-
1. If |convertedScriptSource| does not have a type {{TrustedScript}}, return `"Blocked"` and abort further steps.
1248
+
1. If |convertedScriptSource| is not a {{TrustedScript}} object, return `"Blocked"` and abort further steps.
1249
1249
1. Set |urlString| to be the result of prepending `"javascript:"` to stringified |convertedScriptSource|.
1250
1250
1. Let |newURL| be the result of running the [=URL parser=] on |urlString|. If the parser returns a failure, return `"Blocked"` and abort further steps.
0 commit comments