mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
LibWeb: Implement HTML fragment serialisation and use it in innerHTML
The previous implementation was about a half implementation and was tied to Element::innerHTML. This separates it and puts it into HTMLDocumentParser, as this is in the parsing section of the spec. This provides a near finished HTML fragment serialisation algorithm, bar namespaces in attributes and the `is` value.
This commit is contained in:
parent
ed5128d759
commit
f62477c093
6 changed files with 233 additions and 54 deletions
|
@ -108,6 +108,9 @@ public:
|
|||
|
||||
void queue_an_element_task(HTML::Task::Source, Function<void()>);
|
||||
|
||||
bool is_void_element() const;
|
||||
bool serializes_as_void() const;
|
||||
|
||||
protected:
|
||||
RefPtr<Layout::Node> create_layout_node() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue