For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface CustomElementRegistry

The CustomElementRegistry interface provides methods for registering custom elements and querying registered elements.

MDN Reference

interface CustomElementRegistry {
    define(
        name: string,
        constructor: CustomElementConstructor,
        options?: ElementDefinitionOptions,
    ): void;
    get(name: string): CustomElementConstructor | undefined;
    getName(constructor: CustomElementConstructor): string | null;
    upgrade(root: Node): void;
    whenDefined(name: string): Promise<CustomElementConstructor>;
}
Index

Methods

  • The upgrade() method of the elements in a Node subtree, even before they are connected to the main document.

    MDN Reference

    Parameters

    Returns void

Was this helpful?