mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/trflynn89
Commit: 13b8eeff54
Pull-request: https://github.com/SerenityOS/serenity/pull/15897
Reviewed-by: https://github.com/linusg
7 changed files with 19 additions and 13 deletions
|
@ -31,9 +31,9 @@ EventTarget* ShadowRoot::get_parent(Event const& event)
|
|||
}
|
||||
|
||||
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||
String ShadowRoot::inner_html() const
|
||||
WebIDL::ExceptionOr<String> ShadowRoot::inner_html() const
|
||||
{
|
||||
return serialize_fragment(/* FIXME: Providing true for the require well-formed flag (which may throw) */);
|
||||
return serialize_fragment(DOMParsing::RequireWellFormed::Yes);
|
||||
}
|
||||
|
||||
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue