mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Make Element::set_shadow_root() disconnect any previous root
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 17:20:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b1096c2ae4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user