mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LibWeb: Implement Node.normalize()
This method puts the given node and all of its sub-tree into a normalized form. A normalized sub-tree has no empty text nodes and no adjacent text nodes.
This commit is contained in:
parent
c92222dcae
commit
0a0651f34e
Notes:
sideshowbarker
2024-07-17 02:29:45 +09:00
Author: https://github.com/tcl3
Commit: 0a0651f34e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/588
5 changed files with 148 additions and 0 deletions
|
@ -156,6 +156,8 @@ public:
|
|||
Optional<String> text_content() const;
|
||||
void set_text_content(Optional<String> const&);
|
||||
|
||||
WebIDL::ExceptionOr<void> normalize();
|
||||
|
||||
Optional<String> node_value() const;
|
||||
void set_node_value(Optional<String> const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue