1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +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:
Andreas Kling 2020-06-21 01:00:58 +02:00
parent faff557400
commit bc4fa7a3c9
4 changed files with 16 additions and 0 deletions

View file

@ -8,5 +8,6 @@ interface Node : EventTarget {
readonly attribute Node? parentNode;
readonly attribute Element? parentElement;
Node appendChild(Node node);
}