mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Don't clear children of declarative shadow hosts when imperatively attaching another shadow root (#36104)
* Don't remove a declarative shadow hosts children when attaching an imperative shadow root Instead we should remove all children of the shadowroot. 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:
parent
3c51df0f1b
commit
3a356ffb74
3 changed files with 1 additions and 107 deletions
|
@ -562,8 +562,7 @@ impl Element {
|
|||
}
|
||||
|
||||
// Step 4.3.1. Remove all of currentShadowRoot’s children, in tree order.
|
||||
let node = self.upcast::<Node>();
|
||||
for child in node.children() {
|
||||
for child in current_shadow_root.upcast::<Node>().children() {
|
||||
child.remove_self();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue