1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +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:
Nico Weber 2020-08-17 12:36:00 -04:00 committed by Andreas Kling
parent c0c7b4a098
commit e9b56b5b9c
7 changed files with 44 additions and 44 deletions

View file

@ -35,8 +35,6 @@ public:
template<typename F> void for_each_child(F) const;
template<typename F> void for_each_child(F);
void remove_all_children();
protected:
explicit ParentNode(Document& document, NodeType type)
: Node(document, type)