Make traverse_preorder follow children of shadow hosts (#35276)

* Make traverse_preorder follow children of shadow hosts

Children of shadow hosts are not displayed, but they
still exist in the DOM and must be traversed.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Fix traverse_preorder over shadow roots

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-02-04 21:47:33 +01:00 committed by GitHub
parent 3a75e1205b
commit aa09e2b88f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 25 additions and 185 deletions

View file

@ -1,6 +1,3 @@
[dom-tree-accessors-001.html]
[Elements in a shadow tree should not be accessible from owner document's getElementsByName() method.]
expected: FAIL
[Elements in a shadow tree should not be accessible from owner document's "all" attribute.]
expected: FAIL

View file

@ -1,6 +0,0 @@
[selectors-api-001.html]
[Elements in a shadow tree should not be accessible from owner document's querySelector() method.]
expected: FAIL
[Elements in a shadow tree should not be accessible from owner document's querySelectorAll() method.]
expected: FAIL

View file

@ -1,33 +0,0 @@
[test-009.html]
[A_04_01_09_T01]
expected: FAIL
[A_04_01_09_T03]
expected: FAIL
[A_04_01_09_T05]
expected: FAIL
[A_04_01_09_T08]
expected: FAIL
[A_04_01_09_T09]
expected: FAIL
[A_04_01_09_T10]
expected: FAIL
[A_04_01_09_T11]
expected: FAIL
[A_04_01_09_T12]
expected: FAIL
[A_04_01_09_T14]
expected: FAIL
[A_04_01_09_T15]
expected: FAIL
[A_04_01_09_T16]
expected: FAIL