mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWeb: Make Element::set_shadow_root() disconnect any previous root
This commit is contained in:
parent
d2a99eded7
commit
b1096c2ae4
4 changed files with 7 additions and 4 deletions
|
@ -15,7 +15,7 @@ namespace Web::DOM {
|
|||
ShadowRoot::ShadowRoot(Document& document, Element& host)
|
||||
: DocumentFragment(document)
|
||||
{
|
||||
set_host(host);
|
||||
set_host(&host);
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#ref-for-get-the-parent%E2%91%A6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue