mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:47:45 +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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue