Skip to content

Commit

Permalink
Editorial: use 'global' rather than 'this' in timer initialization steps
Browse files Browse the repository at this point in the history
There is no this value around at this point.
  • Loading branch information
Ms2ger authored Sep 26, 2024
1 parent 6b3de36 commit b8ea975
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -114016,9 +114016,8 @@ enum <dfn enum>DOMParserSupportedType</dfn> {
<p>If <var>previousId</var> was not given:</p>

<ol>
<li><p>Let <var>globalName</var> be "<code data-x="">Window</code>" if <span>this</span>'s
<span>relevant global object</span> is a <code>Window</code> object; "<code
data-x="">Worker</code>" otherwise.</p></li>
<li><p>Let <var>globalName</var> be "<code data-x="">Window</code>" if <var>global</var>
is a <code>Window</code> object; "<code data-x="">Worker</code>" otherwise.</p></li>

<li><p>Let <var>methodName</var> be "<code data-x="">setInterval</code>" if
<var>repeat</var> is true; "<code data-x="">setTimeout</code>" otherwise.</p></li>
Expand All @@ -114028,9 +114027,8 @@ enum <dfn enum>DOMParserSupportedType</dfn> {

<li><p>Set <var>handler</var> to the result of invoking the <span
data-x="tt-getcompliantstring">Get Trusted Type compliant string</span> algorithm with
<code data-x="tt-trustedscript">TrustedScript</code>, <span>this</span>'s <span>relevant
global object</span>, <var>handler</var>, <var>sink</var>, and "<code
data-x="">script</code>".</p></li>
<code data-x="tt-trustedscript">TrustedScript</code>, <var>global</var>,
<var>handler</var>, <var>sink</var>, and "<code data-x="">script</code>".</p></li>
</ol>
</li>

Expand Down

0 comments on commit b8ea975

Please sign in to comment.