pub trait CustomElementRegistryMethods {
    // Required methods
    fn Define(
        &self,
        name: DOMString,
        constructor_: Rc<CustomElementConstructor>,
        options: &ElementDefinitionOptions,
    ) -> Result<(), Error>;
    fn Get(
        &self,
        cx: SafeJSContext,
        name: DOMString,
        rval: MutableHandleValue<'_>,
    );
    fn GetName(
        &self,
        constructor: Rc<CustomElementConstructor>,
    ) -> Option<DOMString>;
    fn WhenDefined(
        &self,
        name: DOMString,
        _comp: InRealm<'_>,
        _can_gc: CanGc,
    ) -> Rc<Promise>;
    fn Upgrade(&self, root: &Node);
}

Required Methods§

source

fn Define( &self, name: DOMString, constructor_: Rc<CustomElementConstructor>, options: &ElementDefinitionOptions, ) -> Result<(), Error>

source

fn Get(&self, cx: SafeJSContext, name: DOMString, rval: MutableHandleValue<'_>)

source

fn GetName( &self, constructor: Rc<CustomElementConstructor>, ) -> Option<DOMString>

source

fn WhenDefined( &self, name: DOMString, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn Upgrade(&self, root: &Node)

Implementors§