1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibWeb: Convert Node.childNodes to NodeList

This changes the old child_nodes implementation to children_as_vector
so that can still be used in insert_before.
This commit is contained in:
Luke Wilde 2021-10-02 20:37:45 +01:00 committed by Andreas Kling
parent 2f7fb1fe63
commit 6a7739c645
3 changed files with 15 additions and 5 deletions

View file

@ -4,8 +4,7 @@ interface Node : EventTarget {
readonly attribute DOMString nodeName;
boolean hasChildNodes();
// FIXME: This should be a NodeList
readonly attribute ArrayFromVector childNodes;
[SameObject] readonly attribute NodeList childNodes;
readonly attribute Node? firstChild;
readonly attribute Node? lastChild;
readonly attribute Node? previousSibling;