ladybird/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.idl

19 lines
747 B
Text
Raw Permalink Normal View History

// 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);
2024-07-06 11:35:10 -03:00
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;
};