diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 49bc12d3ae7..b62777710de 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -562,8 +562,7 @@ impl Element { } // Step 4.3.1. Remove all of currentShadowRoot’s children, in tree order. - let node = self.upcast::(); - for child in node.children() { + for child in current_shadow_root.upcast::().children() { child.remove_self(); } diff --git a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini b/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini deleted file mode 100644 index 117b3f75b0e..00000000000 --- a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-attachment.html.ini +++ /dev/null @@ -1,102 +0,0 @@ -[declarative-shadow-dom-attachment.html] - [Declarative Shadow DOM as a child of
, with mode=open, delegatesFocus=false. Should be safelisted.] - expected: FAIL - - [Declarative Shadow DOM as a child of