mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibWeb: Fully implement the fragment serializing algorithm
Rather than assuming the node's node document is an HTML document, handle XML documents as well.
This commit is contained in:
parent
e1ac9c83b2
commit
13b8eeff54
7 changed files with 19 additions and 13 deletions
|
@ -492,9 +492,9 @@ WebIDL::ExceptionOr<void> Element::set_inner_html(String const& markup)
|
|||
}
|
||||
|
||||
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||
String Element::inner_html() const
|
||||
WebIDL::ExceptionOr<String> Element::inner_html() const
|
||||
{
|
||||
return serialize_fragment(/* FIXME: Providing true for the require well-formed flag (which may throw) */);
|
||||
return serialize_fragment(DOMParsing::RequireWellFormed::Yes);
|
||||
}
|
||||
|
||||
bool Element::is_focused() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue