pub trait CustomElementRegistryMethods<D: DomTypes> {
// 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);
}