Address infinite loop in TreeWalker's nextNode() · whatwg/dom@e1e7699
annevk
·
2026-05-21
·
via Recent Commits to dom:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10484,12 +10484,15 @@ object <var>walker</var> and "<code>next</code>" or "<code>previous</code>" <var
|
10484 | 10484 | |
10485 | 10485 | <li><p>Set <var>sibling</var> to <var>temporary</var>'s <a for=tree>next sibling</a>. |
10486 | 10486 | |
10487 | | -<li><p>If <var>sibling</var> is non-null, then set <var>node</var> to <var>sibling</var> and |
10488 | | -<a for=iteration>break</a>. |
| 10487 | +<li><p>If <var>sibling</var> is non-null, then <a for=iteration>break</a>. |
10489 | 10488 | |
10490 | 10489 | <li><p>Set <var>temporary</var> to <var>temporary</var>'s <a for=tree>parent</a>. |
10491 | 10490 | </ol> |
10492 | 10491 | |
| 10492 | +<li><p>If <var>sibling</var> is null, then return null. |
| 10493 | + |
| 10494 | +<li><p>Set <var>node</var> to <var>sibling</var>. |
| 10495 | + |
10493 | 10496 | <li><p>Set <var>result</var> to the result of <a for=/>filtering</a> <var>node</var> within |
10494 | 10497 | <a>this</a>. |
10495 | 10498 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。