1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +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:
Luke 2021-05-07 00:52:23 +01:00 committed by Andreas Kling
parent 228c1f4968
commit 46f2c278b0
3 changed files with 62 additions and 0 deletions

View file

@ -18,6 +18,7 @@ interface Node : EventTarget {
Node appendChild(Node node);
[ImplementedAs=pre_insert] Node insertBefore(Node node, Node? child);
Node replaceChild(Node node, Node child);
[ImplementedAs=pre_remove] Node removeChild(Node child);
[ImplementedAs=clone_node_binding] Node cloneNode(optional boolean deep = false);