Skip to content

Commit a617a78

Browse files
committed
Resolved PR suggestions.
1 parent 7f50c28 commit a617a78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/spec/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,7 @@ <h5 class="heading settled" data-level="4.5.1.1" id="trusted-types-pre-navigatio
26782678
<li data-md>
26792679
<p>If <var>defaultPolicy</var> is <code>null</code>, return <code>"Blocked"</code> and abort further steps.</p>
26802680
<li data-md>
2681-
<p>Let <var>covertedScriptSource</var> be the result of executing <a data-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 <a data-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>
26822682
<ul>
26832683
<li data-md>
26842684
<p><var>defaultPolicy</var> as <var>policy</var></p>
@@ -2690,7 +2690,7 @@ <h5 class="heading settled" data-level="4.5.1.1" id="trusted-types-pre-navigatio
26902690
<p>« <code>"Location.href"</code> » as <var>arguments</var></p>
26912691
</ul>
26922692
<li data-md>
2693-
<p>If <var>convertedScriptSource</var> does not have a type <code class="idl"><a data-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 <code class="idl"><a data-link-type="idl" href="#trustedscript" id="ref-for-trustedscript①③">TrustedScript</a></code> object, return <code>"Blocked"</code> and abort further steps.</p>
26942694
<li data-md>
26952695
<p>Set <var>urlString</var> to be the result of prepending <code>"javascript:"</code> to stringified <var>convertedScriptSource</var>.</p>
26962696
<li data-md>

spec/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,13 +1239,13 @@ Note: This algorithm assures that the code to be executed by a navigation to a `
12391239
1. Let |encodedScriptSource| be the result of removing the leading `"javascript:"` from |urlString|.
12401240
1. Let |defaultPolicy| be the result of executing [$Get default policy$] algorithm on |source|'s {{WindowProxy}}'s [=trusted type policy factory=].
12411241
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:
12431243

12441244
* |defaultPolicy| as |policy|
12451245
* |encodedScriptSource| as |value|
12461246
* `"TrustedScript` as |trustedTypeName|
12471247
* &laquo; `"Location.href"` &raquo; 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.
12491249
1. Set |urlString| to be the result of prepending `"javascript:"` to stringified |convertedScriptSource|.
12501250
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.
12511251
1. Set |request|'s [=request/url=] to |newURL|.

0 commit comments

Comments
 (0)