[whatwg/dom] Address infinite loop in TreeWalker's nextNode() (PR #1433)

Fixes #1102.

While the PR template is not applicable, this should have tests. Perhaps https://github.com/SerenityOS/serenity/commit/dbca63a1db4a88d48afd4dd4354b2a9512874bac can be repurposed.

@Lubrsi @awesomekling @smaug---- care to review? (Specification is based on Gecko's implementation, but clearly missed the mark here.)
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1433

-- Commit Summary --

  * Address infinite loop in TreeWalker's nextNode()

-- File Changes --

    M dom.bs (9)

-- Patch Links --

https://github.com/whatwg/dom/pull/1433.patch
https://github.com/whatwg/dom/pull/1433.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1433
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1433@github.com>

Received on Friday, 28 November 2025 12:44:05 UTC