Skip to content

Commit 868f173

Browse files
authored
Address infinite loop in TreeWalker's nextNode()
See #787 (comment) onward for analysis and test references. Fixes #787.
1 parent b9383a3 commit 868f173

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dom.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9519,7 +9519,8 @@ steps:
95199519

95209520
<li><p>Set <var>sibling</var> to <var>temporary</var>'s <a for=tree>next sibling</a>.
95219521

9522-
<li><p>If <var>sibling</var> is non-null, then <a for=iteration>break</a>.
9522+
<li><p>If <var>sibling</var> is non-null, then set <var>node</var> to <var>sibling</var> and
9523+
<a for=iteration>break</a>.
95239524

95249525
<li><p>Set <var>temporary</var> to <var>temporary</var>'s <a for=tree>parent</a>.
95259526
</ol>
@@ -10234,6 +10235,7 @@ Ondřej Žára,
1023410235
Peter Sharpe,
1023510236
Philip Jägenstedt,
1023610237
Philippe Le Hégaret,
10238+
Piers Wombwell,
1023710239
Pierre-Marie Dartus,
1023810240
prosody—Gab<!-- riel --> Vereable<!-- Gaston --> <!-- Croft -->Context(,
1023910241
Ra'Shaun Stovall (Snuggs),

0 commit comments

Comments
 (0)