mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWeb: Add Node.textContent
This requires moving remove_all_children() from ParentNode to Node, which makes ParentNode.cpp empty, so remove it. It also co-opts the existing Node::text_content() method and tweaks it slightly to fit the semantics of Node.textContent.
This commit is contained in:
parent
c0c7b4a098
commit
e9b56b5b9c
Notes:
sideshowbarker
2024-07-19 03:28:47 +09:00
Author: https://github.com/nico
Commit: e9b56b5b9c
Pull-request: https://github.com/SerenityOS/serenity/pull/3194
Reviewed-by: https://github.com/linusg ✅
7 changed files with 44 additions and 44 deletions
|
@ -7,6 +7,7 @@ interface Node : EventTarget {
|
|||
readonly attribute Node? nextSibling;
|
||||
readonly attribute Node? parentNode;
|
||||
readonly attribute Element? parentElement;
|
||||
attribute DOMString textContent;
|
||||
|
||||
Node appendChild(Node node);
|
||||
Node insertBefore(Node node, Node? child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue