mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +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
|
@ -28,6 +28,7 @@ interface Node : EventTarget {
|
|||
// However, we only apply it to setters, so this works as a stop gap.
|
||||
// Replace this with something like a special cased [LegacyNullToEmptyString].
|
||||
[LegacyNullToEmptyString, CEReactions] attribute DOMString? textContent;
|
||||
[CEReactions] undefined normalize();
|
||||
|
||||
[CEReactions] Node appendChild(Node node);
|
||||
[ImplementedAs=pre_insert, CEReactions] Node insertBefore(Node node, Node? child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue