1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

LibWeb: Move element_child_count to ParentNode and add its IDL attribute

I initially had it in Node just because, but then saw it was part of
ParentNode in the spec.
This commit is contained in:
Luke 2021-04-11 17:13:10 +01:00 committed by Andreas Kling
parent fc9abee84b
commit 83d2c3f2f5
7 changed files with 31 additions and 25 deletions

View file

@ -2,8 +2,10 @@ interface DocumentFragment : Node {
Element? getElementById(DOMString id);
// FIXME: These should all come from a ParentNode mixin
readonly attribute Element? firstElementChild;
readonly attribute Element? lastElementChild;
readonly attribute unsigned long childElementCount;
Element? querySelector(DOMString selectors);
ArrayFromVector querySelectorAll(DOMString selectors);