1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

LibWeb: Extract the ParentNode IDL mixin

This commit is contained in:
Sam Atkins 2022-07-27 19:51:49 +01:00 committed by Linus Groh
parent 79fdc08de9
commit d4c40e3aad
4 changed files with 27 additions and 46 deletions

View file

@ -2,25 +2,11 @@
#import <DOM/HTMLCollection.idl>
#import <DOM/Node.idl>
#import <DOM/NodeList.idl>
#import <DOM/ParentNode.idl>
// https://dom.spec.whatwg.org/#documentfragment
interface DocumentFragment : Node {
constructor();
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;
[CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
[CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
[CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
Element? querySelector(DOMString selectors);
[NewObject] NodeList querySelectorAll(DOMString selectors);
[SameObject] readonly attribute HTMLCollection children;
};