mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-03 12:52:31 +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. (cherry picked from commit 9eb4b91168145def5677cd41057d34ecf369372b)
This commit is contained in:
committed by
Nico Weber
parent
34a4b28b89
commit
a5189537e9
@@ -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