Skip to content

Commit b8ea975

Browse files
authored
Editorial: use 'global' rather than 'this' in timer initialization steps
There is no this value around at this point.
1 parent 6b3de36 commit b8ea975

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114016,9 +114016,8 @@ enum <dfn enum>DOMParserSupportedType</dfn> {
114016114016
<p>If <var>previousId</var> was not given:</p>
114017114017

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

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

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

0 commit comments

Comments
 (0)