mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
LibWeb: Implement Node.replaceChild
The `if (child->parent())` check seems to be redundant, but I'm keeping it just to match the spec.
This commit is contained in:
parent
228c1f4968
commit
46f2c278b0
3 changed files with 62 additions and 0 deletions
|
@ -82,6 +82,8 @@ public:
|
|||
void remove_all_children(bool suppress_observers = false);
|
||||
u16 compare_document_position(RefPtr<Node> other);
|
||||
|
||||
ExceptionOr<NonnullRefPtr<Node>> replace_child(NonnullRefPtr<Node> node, NonnullRefPtr<Node> child);
|
||||
|
||||
NonnullRefPtr<Node> clone_node(Document* document = nullptr, bool clone_children = false) const;
|
||||
ExceptionOr<NonnullRefPtr<Node>> clone_node_binding(bool deep) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue