Make traverse_preorder follow shadow roots (#34503)

* script: Ensure shadow-inclusve preorder traversals follow hosted shadow roots.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Handle unregistering element id/name values inside of a shadow root.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* script: Merge shadow root tree iteration logic.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-12-06 23:28:34 -05:00 committed by GitHub
parent ad48ab7ec3
commit 4242ff9626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 20733 additions and 123 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,4 @@
[getinnerhtml.tentative.html]
expected: TIMEOUT
[Element.getInnerHTML() on <a>]
expected: FAIL

View file

@ -1,2 +0,0 @@
[input-element-list.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[input-type-radio.html]
expected: CRASH

View file

@ -0,0 +1,3 @@
[window-frames.html]
[window.frames should not leak frames in Shadow DOM.]
expected: FAIL

View file

@ -1,2 +1,3 @@
[window-named-properties-001.html]
expected: TIMEOUT
[An iframe element in a shadow tree should not be accessible from window's named properties with its "name" attribute value.]
expected: FAIL