mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02: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
Notes:
sideshowbarker
2024-07-17 00:23:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/9eb4b91168 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/278 Reviewed-by: https://github.com/mattco98 Reviewed-by: https://github.com/nico
@@ -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