mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Parse declarative shadow DOM template elements
We now honor the shadowrootmode attribute on template elements while parsing, and instantiate a shadow tree as required by the spec.
This commit is contained in:
committed by
Andreas Kling
parent
043ad0eb76
commit
9eb4b91168
@@ -63,4 +63,9 @@ void HTMLTemplateElement::cloned(Node& copy, bool clone_children)
|
||||
});
|
||||
}
|
||||
|
||||
void HTMLTemplateElement::set_template_contents(JS::NonnullGCPtr<DOM::DocumentFragment> contents)
|
||||
{
|
||||
m_content = contents;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user