Skip to content

Commit 4d1a90b

Browse files
domenicmfreed7
authored andcommitted
Fix clearInterval() in setInterval() callback
Tests: web-platform-tests/wpt#31698. Closes whatwg#7356.
1 parent 30156e7 commit 4d1a90b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96604,6 +96604,15 @@ enum <dfn enum>DOMParserSupportedType</dfn> {
9660496604
</ol>
9660596605
</li>
9660696606

96607+
<li>
96608+
<p>If <var>id</var> does not <span data-x="map exists">exist</span> in <var>global</var>'s
96609+
<span>map of active timers</span>, then abort these steps.</p>
96610+
96611+
<p class="note">It might have been removed via the author code in <var>handler</var> calling
96612+
<code data-x="dom-clearTimeout">clearTimeout()</code> or <code
96613+
data-x="dom-clearInterval">clearInterval()</code>.</p>
96614+
</li>
96615+
9660796616
<li><p>If <var>repeat</var> is true, then perform the <span>timer initialization
9660896617
steps</span> again, given <var>global</var>, <var>handler</var>, <var>timeout</var>,
9660996618
<var>arguments</var>, true, and <var>id</var>.</p></li>

0 commit comments

Comments
 (0)