Trait script::dom::bindings::codegen::Bindings::CustomElementRegistryBinding::CustomElementRegistry_Binding::CustomElementRegistryMethods
source · 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);
}