Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/dom/traversal
Michael Manganiello e7654c2e08 LibWeb: Fix off-by-one offset error in NodeIterator forward traversal
As `node->parent()` was being called before comparing `node` with
`stay_within`, the code was incorrectly allowing traversal to the
parent node even when it should not have.

This change ensures that the parent is only checked after
confirming that the current node is not the `stay_within` node.

All `dom/traversal/NodeIterator.html` WPT tests get fixed after this
change.
2025-08-02 07:38:27 +02:00
..