1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +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

@ -0,0 +1,13 @@
#import <DOM/Node.idl>
// https://dom.spec.whatwg.org/#childnode
interface mixin ChildNode {
[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();
};
DocumentType includes ChildNode;
Element includes ChildNode;
CharacterData includes ChildNode;