mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
LibWeb: Port Node interface from DeprecatedString to String
Which is fortunately quite straight forward :^)
This commit is contained in:
parent
a76ef04ae6
commit
8ce9e51c97
21 changed files with 50 additions and 45 deletions
|
@ -81,7 +81,7 @@ void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name,
|
|||
script_element.set_parser_document(Badge<XMLDocumentBuilder> {}, m_document);
|
||||
script_element.set_force_async(Badge<XMLDocumentBuilder> {}, false);
|
||||
}
|
||||
if (HTML::TagNames::template_ == m_current_node->node_name()) {
|
||||
if (HTML::TagNames::template_ == m_current_node->node_name().to_deprecated_fly_string()) {
|
||||
// When an XML parser would append a node to a template element, it must instead append it to the template element's template contents (a DocumentFragment node).
|
||||
MUST(static_cast<HTML::HTMLTemplateElement&>(*m_current_node).content()->append_child(node));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue