mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
LibWeb: Add ParentNode::remove_all_children()
This safely removes all children from a Node.
This commit is contained in:
parent
1146ab0fae
commit
632cc53e2c
2 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,8 @@ 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue