mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 05:11:51 +00:00
LibWeb: Make Element::set_shadow_root() disconnect any previous root
This commit is contained in:
parent
d2a99eded7
commit
b1096c2ae4
Notes:
sideshowbarker
2024-07-17 17:20:27 +09:00
Author: https://github.com/awesomekling
Commit: b1096c2ae4
4 changed files with 7 additions and 4 deletions
|
@ -13,7 +13,7 @@ HTMLTemplateElement::HTMLTemplateElement(DOM::Document& document, DOM::Qualified
|
|||
: HTMLElement(document, move(qualified_name))
|
||||
{
|
||||
m_content = adopt_ref(*new DOM::DocumentFragment(appropriate_template_contents_owner_document(document)));
|
||||
m_content->set_host(*this);
|
||||
m_content->set_host(this);
|
||||
}
|
||||
|
||||
HTMLTemplateElement::~HTMLTemplateElement()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue