Package-level declarations
Types
The CustomElementRegistry
interface provides methods for registering custom elements and querying registered elements.
The CustomStateSet
interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.
The ElementInternals
interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.
The HTMLSlotElement
interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML slot element.
The HTMLTemplateElement
interface enables access to the contents of an HTML template element.
The ShadowRoot
interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.
Properties
The customElements
read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.
Functions
The define()
method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.
The getName()
method of the CustomElementRegistry interface returns the name for a previously-defined custom element.
The whenDefined()
method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined.