8000 Address infinite loop in TreeWalker's nextNode() · whatwg/dom@68749ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 68749ea

Browse files
committed
Address infinite loop in TreeWalker's nextNode()
Fixes #1102.
1 parent b1e3684 commit 68749ea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dom.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10397,18 +10397,23 @@ object <var>walker</var> and "<code>next</code>" or "<code>previous</code>" <var
1039710397

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

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

1040310402
<li><p>Set <var>temporary</var> to <var>temporary</var>'s <a for=tree>parent</a>.
1040410403
</ol>
1040510404

10405+
<li><p>If <var>sibling</var> is null, then <a for=iteration>break</a>.
10406+
10407+
<li><p>Set <var>node</var> to <var>sibling</var>.
10408+
1040610409
<li><p>Set <var>result</var> to the result of <a for=/>filtering</a> <var>node</var> within
1040710410
<a>this</a>.
1040810411

1040910412
<li><p>If <var>result</var> is {{NodeFilter/FILTER_ACCEPT}}, then set <a>this</a>'s
1041010413
<a for=TreeWalker>current</a> to <var>node</var> and return <var>node</var>.
1041110414
</ol>
10415+
10416+
<li><p>Return null.
1041210417
</ol>
1041310418
</div>
1041410419

0 commit comments

Comments
 (0)
0