Files
ladybird/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.idl
2026-03-27 19:49:55 +00:00

21 lines
771 B
Plaintext

#import <DOM/Node.idl>
// https://html.spec.whatwg.org/multipage/custom-elements.html#customelementregistry
[Exposed=Window]
interface CustomElementRegistry {
constructor();
[CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
(CustomElementConstructor or undefined) get(DOMString name);
DOMString? getName(CustomElementConstructor constructor);
Promise<CustomElementConstructor> whenDefined(DOMString name);
[CEReactions] undefined upgrade(Node root);
[CEReactions, ImplementedAs=initialize_for_bindings] undefined initialize(Node root);
};
callback CustomElementConstructor = HTMLElement ();
dictionary ElementDefinitionOptions {
DOMString extends;
};