CustomElementRegistry interface provides methods for registering custom elements and querying registered elements. To get an instance of it, use the
Defines a new custom element.
Returns the constructor for the named custom element, or
undefinedif the custom element is not defined.
Returns the name for the already-defined custom element, or
nullif the custom element is not defined.
Upgrades a custom element directly, even before it is connected to its shadow root.
Returns an empty
Promisethat resolves when a custom element becomes defined with the given name. If such a custom element is already defined, the returned promise is immediately fulfilled.
|HTML Standard |
BCD tables only load in the browser