mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:05:08 +00:00
LibWeb: Expose Node.appendChild() to the web
This is a very barebones implementation of appendChild() that doesn't take any of the idiosyncratic DOM behaviors into account yet. Also teach the wrapper generator how to turn an Interpreter argument into a Node&.
This commit is contained in:
parent
faff557400
commit
bc4fa7a3c9
4 changed files with 16 additions and 0 deletions
|
@ -193,4 +193,10 @@ const Element* Node::parent_element() const
|
|||
return to<Element>(parent());
|
||||
}
|
||||
|
||||
RefPtr<Node> Node::append_child(NonnullRefPtr<Node> node, bool notify)
|
||||
{
|
||||
TreeNode<Node>::append_child(node, notify);
|
||||
return node;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue