mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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
Notes:
sideshowbarker
2024-07-18 03:58:58 +09:00
Author: https://github.com/Lubrsi
Commit: f62477c093
Pull-request: https://github.com/SerenityOS/serenity/pull/10025
6 changed files with 233 additions and 54 deletions
|
@ -183,6 +183,8 @@ public:
|
|||
i32 id() const { return m_id; }
|
||||
static Node* from_id(i32 node_id);
|
||||
|
||||
String serialize_fragment() const;
|
||||
|
||||
void replace_all(RefPtr<Node>);
|
||||
void string_replace_all(String const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue