mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibWeb: Port HTMLParser::serialize_html_fragment from DeprecatedString
This commit is contained in:
parent
f2410071cd
commit
a8fd4fab00
3 changed files with 8 additions and 8 deletions
|
@ -1333,7 +1333,7 @@ WebIDL::ExceptionOr<DeprecatedString> Node::serialize_fragment(DOMParsing::Requi
|
|||
|
||||
// 2. If context document is an HTML document, return an HTML serialization of node.
|
||||
if (context_document.is_html_document())
|
||||
return HTML::HTMLParser::serialize_html_fragment(*this);
|
||||
return HTML::HTMLParser::serialize_html_fragment(*this).to_deprecated_string();
|
||||
|
||||
// 3. Otherwise, context document is an XML document; return an XML serialization of node passing the flag require well-formed.
|
||||
return DOMParsing::serialize_node_to_xml_string(*this, require_well_formed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue