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

LibWeb: Extract the ChildNode IDL mixin

This commit is contained in:
Sam Atkins 2022-07-27 21:14:16 +01:00 committed by Linus Groh
parent 6db558e0ae
commit d6a5ddd3c0
4 changed files with 20 additions and 24 deletions

View file

@ -1,11 +1,13 @@
#import <CSS/CSSStyleDeclaration.idl>
#import <DOM/ChildNode.idl>
#import <DOM/DOMTokenList.idl>
#import <DOM/NamedNodeMap.idl>
#import <DOM/Node.idl>
#import <DOM/NodeList.idl>
#import <Geometry/DOMRect.idl>
#import <Geometry/DOMRectList.idl>
#import <CSS/CSSStyleDeclaration.idl>
// https://dom.spec.whatwg.org/#element
interface Element : Node {
readonly attribute DOMString? namespaceURI;
readonly attribute DOMString? prefix;
@ -65,11 +67,4 @@ interface Element : Node {
readonly attribute long clientLeft;
readonly attribute long clientWidth;
readonly attribute long clientHeight;
// FIXME: These should come from a ChildNode mixin
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
[CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
[CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
[CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove();
};