1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibWeb: Implement Node.cloneNode()

With this we can now successfully run a Vue.js 2 hello world! :^)
This commit is contained in:
Linus Groh 2021-04-14 01:25:10 +02:00 committed by Andreas Kling
parent d721c93beb
commit 5da4c9bf1e
4 changed files with 71 additions and 1 deletions

View file

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