pub(crate) trait ElementMethods<D>where
D: DomTypes,{
Show 180 methods
// Required methods
fn GetNamespaceURI(&self) -> Option<DOMString>;
fn GetPrefix(&self) -> Option<DOMString>;
fn LocalName(&self) -> DOMString;
fn TagName(&self) -> DOMString;
fn Id(&self) -> DOMString;
fn SetId(&self, cx: &mut JSContext, value: DOMString);
fn ClassName(&self) -> DOMString;
fn SetClassName(&self, cx: &mut JSContext, value: DOMString);
fn ClassList(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::DOMTokenList>>;
fn Slot(&self) -> DOMString;
fn SetSlot(&self, cx: &mut JSContext, value: DOMString);
fn HasAttributes(&self) -> bool;
fn Attributes(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::NamedNodeMap>>;
fn GetAttributeNames(&self) -> Vec<DOMString>;
fn GetAttribute(
&self,
cx: &mut JSContext,
name: DOMString,
) -> Option<DOMString>;
fn GetAttributeNS(
&self,
cx: &mut JSContext,
namespace: Option<DOMString>,
localName: DOMString,
) -> Option<DOMString>;
fn ToggleAttribute(
&self,
cx: &mut JSContext,
name: DOMString,
force: Option<bool>,
) -> Result<bool, Error>;
fn SetAttribute(
&self,
cx: &mut JSContext,
name: DOMString,
value: TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString<D>,
) -> Result<(), Error>;
fn SetAttributeNS(
&self,
cx: &mut JSContext,
namespace: Option<DOMString>,
name: DOMString,
value: TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString<D>,
) -> Result<(), Error>;
fn RemoveAttribute(&self, cx: &mut JSContext, name: DOMString);
fn RemoveAttributeNS(
&self,
cx: &mut JSContext,
namespace: Option<DOMString>,
localName: DOMString,
);
fn HasAttribute(&self, cx: &mut JSContext, name: DOMString) -> bool;
fn HasAttributeNS(
&self,
cx: &mut JSContext,
namespace: Option<DOMString>,
localName: DOMString,
) -> bool;
fn GetAttributeNode(
&self,
cx: &mut JSContext,
name: DOMString,
) -> Option<Root<Dom<<D as DomTypes>::Attr>>>;
fn GetAttributeNodeNS(
&self,
cx: &mut JSContext,
namespace: Option<DOMString>,
localName: DOMString,
) -> Option<Root<Dom<<D as DomTypes>::Attr>>>;
fn SetAttributeNode(
&self,
cx: &mut JSContext,
attr: &<D as DomTypes>::Attr,
) -> Result<Option<Root<Dom<<D as DomTypes>::Attr>>>, Error>;
fn SetAttributeNodeNS(
&self,
cx: &mut JSContext,
attr: &<D as DomTypes>::Attr,
) -> Result<Option<Root<Dom<<D as DomTypes>::Attr>>>, Error>;
fn RemoveAttributeNode(
&self,
cx: &mut JSContext,
oldAttr: &<D as DomTypes>::Attr,
) -> Result<Root<Dom<<D as DomTypes>::Attr>>, Error>;
fn Closest(
&self,
selectors: DOMString,
) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>;
fn Matches(&self, selectors: DOMString) -> Result<bool, Error>;
fn WebkitMatchesSelector(&self, selectors: DOMString) -> Result<bool, Error>;
fn GetElementsByTagName(
&self,
cx: &mut JSContext,
localName: DOMString,
) -> Root<Dom<<D as DomTypes>::HTMLCollection>>;
fn GetElementsByTagNameNS(
&self,
cx: &mut JSContext,
namespace: Option<DOMString>,
localName: DOMString,
) -> Root<Dom<<D as DomTypes>::HTMLCollection>>;
fn GetElementsByClassName(
&self,
cx: &mut JSContext,
classNames: DOMString,
) -> Root<Dom<<D as DomTypes>::HTMLCollection>>;
fn InsertAdjacentElement(
&self,
cx: &mut JSContext,
where_: DOMString,
element: &<D as DomTypes>::Element,
) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>;
fn InsertAdjacentText(
&self,
cx: &mut JSContext,
where_: DOMString,
data: DOMString,
) -> Result<(), Error>;
fn InsertAdjacentHTML(
&self,
cx: &mut JSContext,
position: DOMString,
string: TrustedHTMLOrString<D>,
) -> Result<(), Error>;
fn AttachShadow(
&self,
cx: &mut JSContext,
init: &ShadowRootInit,
) -> Result<Root<Dom<<D as DomTypes>::ShadowRoot>>, Error>;
fn GetShadowRoot(&self) -> Option<Root<Dom<<D as DomTypes>::ShadowRoot>>>;
fn GetCustomElementRegistry(
&self,
) -> Option<Root<Dom<<D as DomTypes>::CustomElementRegistry>>>;
fn GetClientRects(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::DOMRectList>>;
fn GetBoundingClientRect(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::DOMRect>>;
fn ScrollIntoView(
&self,
cx: &mut JSContext,
arg: BooleanOrScrollIntoViewOptions,
);
fn Scroll(&self, cx: &mut JSContext, options: &ScrollToOptions);
fn Scroll_(&self, cx: &mut JSContext, x: f64, y: f64);
fn ScrollTo(&self, cx: &mut JSContext, options: &ScrollToOptions);
fn ScrollTo_(&self, cx: &mut JSContext, x: f64, y: f64);
fn ScrollBy(&self, cx: &mut JSContext, options: &ScrollToOptions);
fn ScrollBy_(&self, cx: &mut JSContext, x: f64, y: f64);
fn ScrollTop(&self) -> f64;
fn SetScrollTop(&self, cx: &mut JSContext, value: f64);
fn ScrollLeft(&self) -> f64;
fn SetScrollLeft(&self, cx: &mut JSContext, value: f64);
fn ScrollWidth(&self) -> i32;
fn ScrollHeight(&self) -> i32;
fn ClientTop(&self, cx: &NoGC) -> i32;
fn ClientLeft(&self, cx: &NoGC) -> i32;
fn ClientWidth(&self, cx: &NoGC) -> i32;
fn ClientHeight(&self, cx: &NoGC) -> i32;
fn CurrentCSSZoom(&self, cx: &mut JSContext) -> Finite<f64>;
fn SetHTMLUnsafe(
&self,
cx: &mut JSContext,
html: TrustedHTMLOrString<D>,
options: &SetHTMLUnsafeOptions<D>,
) -> Result<(), Error>;
fn GetHTML(
&self,
cx: &mut JSContext,
options: &GetHTMLOptions<D>,
) -> DOMString;
fn GetInnerHTML(
&self,
cx: &mut JSContext,
) -> Result<TrustedHTMLOrNullIsEmptyString<D>, Error>;
fn SetInnerHTML(
&self,
cx: &mut JSContext,
value: TrustedHTMLOrNullIsEmptyString<D>,
) -> Result<(), Error>;
fn GetOuterHTML(
&self,
cx: &mut JSContext,
) -> Result<TrustedHTMLOrNullIsEmptyString<D>, Error>;
fn SetOuterHTML(
&self,
cx: &mut JSContext,
value: TrustedHTMLOrNullIsEmptyString<D>,
) -> Result<(), Error>;
fn RequestFullscreen(
&self,
realm: &mut CurrentRealm<'_>,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn SetPointerCapture(&self, pointerId: i32) -> Result<(), Error>;
fn ReleasePointerCapture(&self, pointerId: i32) -> Result<(), Error>;
fn HasPointerCapture(&self, pointerId: i32) -> bool;
fn Part(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::DOMTokenList>>;
fn SetHTML(
&self,
cx: &mut JSContext,
html: DOMString,
options: &SetHTMLOptions<D>,
) -> Result<(), Error>;
fn GetRole(&self) -> Option<DOMString>;
fn SetRole(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaAtomic(&self) -> Option<DOMString>;
fn SetAriaAtomic(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaAutoComplete(&self) -> Option<DOMString>;
fn SetAriaAutoComplete(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaBrailleLabel(&self) -> Option<DOMString>;
fn SetAriaBrailleLabel(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaBrailleRoleDescription(&self) -> Option<DOMString>;
fn SetAriaBrailleRoleDescription(
&self,
cx: &mut JSContext,
value: Option<DOMString>,
);
fn GetAriaBusy(&self) -> Option<DOMString>;
fn SetAriaBusy(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaChecked(&self) -> Option<DOMString>;
fn SetAriaChecked(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaColCount(&self) -> Option<DOMString>;
fn SetAriaColCount(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaColIndex(&self) -> Option<DOMString>;
fn SetAriaColIndex(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaColIndexText(&self) -> Option<DOMString>;
fn SetAriaColIndexText(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaColSpan(&self) -> Option<DOMString>;
fn SetAriaColSpan(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaCurrent(&self) -> Option<DOMString>;
fn SetAriaCurrent(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaDescription(&self) -> Option<DOMString>;
fn SetAriaDescription(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaDisabled(&self) -> Option<DOMString>;
fn SetAriaDisabled(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaExpanded(&self) -> Option<DOMString>;
fn SetAriaExpanded(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaHasPopup(&self) -> Option<DOMString>;
fn SetAriaHasPopup(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaHidden(&self) -> Option<DOMString>;
fn SetAriaHidden(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaInvalid(&self) -> Option<DOMString>;
fn SetAriaInvalid(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaKeyShortcuts(&self) -> Option<DOMString>;
fn SetAriaKeyShortcuts(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaLabel(&self) -> Option<DOMString>;
fn SetAriaLabel(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaLevel(&self) -> Option<DOMString>;
fn SetAriaLevel(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaLive(&self) -> Option<DOMString>;
fn SetAriaLive(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaModal(&self) -> Option<DOMString>;
fn SetAriaModal(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaMultiLine(&self) -> Option<DOMString>;
fn SetAriaMultiLine(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaMultiSelectable(&self) -> Option<DOMString>;
fn SetAriaMultiSelectable(
&self,
cx: &mut JSContext,
value: Option<DOMString>,
);
fn GetAriaOrientation(&self) -> Option<DOMString>;
fn SetAriaOrientation(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaPlaceholder(&self) -> Option<DOMString>;
fn SetAriaPlaceholder(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaPosInSet(&self) -> Option<DOMString>;
fn SetAriaPosInSet(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaPressed(&self) -> Option<DOMString>;
fn SetAriaPressed(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaReadOnly(&self) -> Option<DOMString>;
fn SetAriaReadOnly(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaRelevant(&self) -> Option<DOMString>;
fn SetAriaRelevant(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaRequired(&self) -> Option<DOMString>;
fn SetAriaRequired(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaRoleDescription(&self) -> Option<DOMString>;
fn SetAriaRoleDescription(
&self,
cx: &mut JSContext,
value: Option<DOMString>,
);
fn GetAriaRowCount(&self) -> Option<DOMString>;
fn SetAriaRowCount(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaRowIndex(&self) -> Option<DOMString>;
fn SetAriaRowIndex(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaRowIndexText(&self) -> Option<DOMString>;
fn SetAriaRowIndexText(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaRowSpan(&self) -> Option<DOMString>;
fn SetAriaRowSpan(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaSelected(&self) -> Option<DOMString>;
fn SetAriaSelected(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaSetSize(&self) -> Option<DOMString>;
fn SetAriaSetSize(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaSort(&self) -> Option<DOMString>;
fn SetAriaSort(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaValueMax(&self) -> Option<DOMString>;
fn SetAriaValueMax(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaValueMin(&self) -> Option<DOMString>;
fn SetAriaValueMin(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaValueNow(&self) -> Option<DOMString>;
fn SetAriaValueNow(&self, cx: &mut JSContext, value: Option<DOMString>);
fn GetAriaValueText(&self) -> Option<DOMString>;
fn SetAriaValueText(&self, cx: &mut JSContext, value: Option<DOMString>);
fn EnterFormalActivationState(&self, cx: &JSContext) -> Result<(), Error>;
fn ExitFormalActivationState(&self, cx: &JSContext) -> Result<(), Error>;
fn Animate(
&self,
cx: &mut JSContext,
keyframes: *mut JSObject,
options: UnrestrictedDoubleOrKeyframeAnimationOptions<D>,
) -> Root<Dom<<D as DomTypes>::Animation>>;
fn Before(
&self,
cx: &mut JSContext,
nodes: Vec<NodeOrString<D>>,
) -> Result<(), Error>;
fn After(
&self,
cx: &mut JSContext,
nodes: Vec<NodeOrString<D>>,
) -> Result<(), Error>;
fn ReplaceWith(
&self,
cx: &mut JSContext,
nodes: Vec<NodeOrString<D>>,
) -> Result<(), Error>;
fn Remove(&self, cx: &mut JSContext);
fn GetPreviousElementSibling(
&self,
) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
fn GetNextElementSibling(
&self,
) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
fn Children(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::HTMLCollection>>;
fn GetFirstElementChild(
&self,
) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
fn GetLastElementChild(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>;
fn ChildElementCount(&self) -> u32;
fn Prepend(
&self,
cx: &mut JSContext,
nodes: Vec<NodeOrString<D>>,
) -> Result<(), Error>;
fn Append(
&self,
cx: &mut JSContext,
nodes: Vec<NodeOrString<D>>,
) -> Result<(), Error>;
fn ReplaceChildren(
&self,
cx: &mut JSContext,
nodes: Vec<NodeOrString<D>>,
) -> Result<(), Error>;
fn MoveBefore(
&self,
cx: &mut JSContext,
node: &<D as DomTypes>::Node,
child: Option<&<D as DomTypes>::Node>,
) -> Result<(), Error>;
fn QuerySelector(
&self,
cx: &mut JSContext,
selectors: DOMString,
) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>;
fn QuerySelectorAll(
&self,
cx: &mut JSContext,
selectors: DOMString,
) -> Result<Root<Dom<<D as DomTypes>::NodeList>>, Error>;
fn GetAssignedSlot(
&self,
cx: &JSContext,
) -> Option<Root<Dom<<D as DomTypes>::HTMLSlotElement>>>;
}Required Methods§
fn GetNamespaceURI(&self) -> Option<DOMString>
fn GetPrefix(&self) -> Option<DOMString>
fn LocalName(&self) -> DOMString
fn TagName(&self) -> DOMString
fn Id(&self) -> DOMString
fn SetId(&self, cx: &mut JSContext, value: DOMString)
fn ClassName(&self) -> DOMString
fn SetClassName(&self, cx: &mut JSContext, value: DOMString)
fn ClassList( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::DOMTokenList>>
fn Slot(&self) -> DOMString
fn SetSlot(&self, cx: &mut JSContext, value: DOMString)
fn HasAttributes(&self) -> bool
fn Attributes( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::NamedNodeMap>>
fn GetAttributeNames(&self) -> Vec<DOMString>
fn GetAttribute(&self, cx: &mut JSContext, name: DOMString) -> Option<DOMString>
fn GetAttributeNS( &self, cx: &mut JSContext, namespace: Option<DOMString>, localName: DOMString, ) -> Option<DOMString>
fn ToggleAttribute( &self, cx: &mut JSContext, name: DOMString, force: Option<bool>, ) -> Result<bool, Error>
fn SetAttribute( &self, cx: &mut JSContext, name: DOMString, value: TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString<D>, ) -> Result<(), Error>
fn SetAttributeNS( &self, cx: &mut JSContext, namespace: Option<DOMString>, name: DOMString, value: TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString<D>, ) -> Result<(), Error>
fn RemoveAttribute(&self, cx: &mut JSContext, name: DOMString)
fn RemoveAttributeNS( &self, cx: &mut JSContext, namespace: Option<DOMString>, localName: DOMString, )
fn HasAttribute(&self, cx: &mut JSContext, name: DOMString) -> bool
fn HasAttributeNS( &self, cx: &mut JSContext, namespace: Option<DOMString>, localName: DOMString, ) -> bool
fn GetAttributeNode( &self, cx: &mut JSContext, name: DOMString, ) -> Option<Root<Dom<<D as DomTypes>::Attr>>>
fn GetAttributeNodeNS( &self, cx: &mut JSContext, namespace: Option<DOMString>, localName: DOMString, ) -> Option<Root<Dom<<D as DomTypes>::Attr>>>
fn SetAttributeNode( &self, cx: &mut JSContext, attr: &<D as DomTypes>::Attr, ) -> Result<Option<Root<Dom<<D as DomTypes>::Attr>>>, Error>
fn SetAttributeNodeNS( &self, cx: &mut JSContext, attr: &<D as DomTypes>::Attr, ) -> Result<Option<Root<Dom<<D as DomTypes>::Attr>>>, Error>
fn RemoveAttributeNode( &self, cx: &mut JSContext, oldAttr: &<D as DomTypes>::Attr, ) -> Result<Root<Dom<<D as DomTypes>::Attr>>, Error>
fn Closest( &self, selectors: DOMString, ) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>
fn Matches(&self, selectors: DOMString) -> Result<bool, Error>
fn WebkitMatchesSelector(&self, selectors: DOMString) -> Result<bool, Error>
fn GetElementsByTagName( &self, cx: &mut JSContext, localName: DOMString, ) -> Root<Dom<<D as DomTypes>::HTMLCollection>>
fn GetElementsByTagNameNS( &self, cx: &mut JSContext, namespace: Option<DOMString>, localName: DOMString, ) -> Root<Dom<<D as DomTypes>::HTMLCollection>>
fn GetElementsByClassName( &self, cx: &mut JSContext, classNames: DOMString, ) -> Root<Dom<<D as DomTypes>::HTMLCollection>>
fn InsertAdjacentElement( &self, cx: &mut JSContext, where_: DOMString, element: &<D as DomTypes>::Element, ) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>
fn InsertAdjacentText( &self, cx: &mut JSContext, where_: DOMString, data: DOMString, ) -> Result<(), Error>
fn InsertAdjacentHTML( &self, cx: &mut JSContext, position: DOMString, string: TrustedHTMLOrString<D>, ) -> Result<(), Error>
fn AttachShadow( &self, cx: &mut JSContext, init: &ShadowRootInit, ) -> Result<Root<Dom<<D as DomTypes>::ShadowRoot>>, Error>
fn GetShadowRoot(&self) -> Option<Root<Dom<<D as DomTypes>::ShadowRoot>>>
fn GetCustomElementRegistry( &self, ) -> Option<Root<Dom<<D as DomTypes>::CustomElementRegistry>>>
fn GetClientRects( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::DOMRectList>>
fn GetBoundingClientRect( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::DOMRect>>
fn ScrollIntoView( &self, cx: &mut JSContext, arg: BooleanOrScrollIntoViewOptions, )
fn Scroll(&self, cx: &mut JSContext, options: &ScrollToOptions)
fn Scroll_(&self, cx: &mut JSContext, x: f64, y: f64)
fn ScrollTo(&self, cx: &mut JSContext, options: &ScrollToOptions)
fn ScrollTo_(&self, cx: &mut JSContext, x: f64, y: f64)
fn ScrollBy(&self, cx: &mut JSContext, options: &ScrollToOptions)
fn ScrollBy_(&self, cx: &mut JSContext, x: f64, y: f64)
fn ScrollTop(&self) -> f64
fn SetScrollTop(&self, cx: &mut JSContext, value: f64)
fn ScrollLeft(&self) -> f64
fn SetScrollLeft(&self, cx: &mut JSContext, value: f64)
fn ScrollWidth(&self) -> i32
fn ScrollHeight(&self) -> i32
fn ClientTop(&self, cx: &NoGC) -> i32
fn ClientLeft(&self, cx: &NoGC) -> i32
fn ClientWidth(&self, cx: &NoGC) -> i32
fn ClientHeight(&self, cx: &NoGC) -> i32
fn CurrentCSSZoom(&self, cx: &mut JSContext) -> Finite<f64>
fn SetHTMLUnsafe( &self, cx: &mut JSContext, html: TrustedHTMLOrString<D>, options: &SetHTMLUnsafeOptions<D>, ) -> Result<(), Error>
fn GetHTML(&self, cx: &mut JSContext, options: &GetHTMLOptions<D>) -> DOMString
fn GetInnerHTML( &self, cx: &mut JSContext, ) -> Result<TrustedHTMLOrNullIsEmptyString<D>, Error>
fn SetInnerHTML( &self, cx: &mut JSContext, value: TrustedHTMLOrNullIsEmptyString<D>, ) -> Result<(), Error>
fn GetOuterHTML( &self, cx: &mut JSContext, ) -> Result<TrustedHTMLOrNullIsEmptyString<D>, Error>
fn SetOuterHTML( &self, cx: &mut JSContext, value: TrustedHTMLOrNullIsEmptyString<D>, ) -> Result<(), Error>
fn RequestFullscreen( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn SetPointerCapture(&self, pointerId: i32) -> Result<(), Error>
fn ReleasePointerCapture(&self, pointerId: i32) -> Result<(), Error>
fn HasPointerCapture(&self, pointerId: i32) -> bool
fn Part(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::DOMTokenList>>
fn SetHTML( &self, cx: &mut JSContext, html: DOMString, options: &SetHTMLOptions<D>, ) -> Result<(), Error>
fn GetRole(&self) -> Option<DOMString>
fn SetRole(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaAtomic(&self) -> Option<DOMString>
fn SetAriaAtomic(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaAutoComplete(&self) -> Option<DOMString>
fn SetAriaAutoComplete(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaBrailleLabel(&self) -> Option<DOMString>
fn SetAriaBrailleLabel(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaBrailleRoleDescription(&self) -> Option<DOMString>
fn SetAriaBrailleRoleDescription( &self, cx: &mut JSContext, value: Option<DOMString>, )
fn GetAriaBusy(&self) -> Option<DOMString>
fn SetAriaBusy(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaChecked(&self) -> Option<DOMString>
fn SetAriaChecked(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaColCount(&self) -> Option<DOMString>
fn SetAriaColCount(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaColIndex(&self) -> Option<DOMString>
fn SetAriaColIndex(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaColIndexText(&self) -> Option<DOMString>
fn SetAriaColIndexText(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaColSpan(&self) -> Option<DOMString>
fn SetAriaColSpan(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaCurrent(&self) -> Option<DOMString>
fn SetAriaCurrent(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaDescription(&self) -> Option<DOMString>
fn SetAriaDescription(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaDisabled(&self) -> Option<DOMString>
fn SetAriaDisabled(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaExpanded(&self) -> Option<DOMString>
fn SetAriaExpanded(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaHasPopup(&self) -> Option<DOMString>
fn SetAriaHasPopup(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaHidden(&self) -> Option<DOMString>
fn SetAriaHidden(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaInvalid(&self) -> Option<DOMString>
fn SetAriaInvalid(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaKeyShortcuts(&self) -> Option<DOMString>
fn SetAriaKeyShortcuts(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaLabel(&self) -> Option<DOMString>
fn SetAriaLabel(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaLevel(&self) -> Option<DOMString>
fn SetAriaLevel(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaLive(&self) -> Option<DOMString>
fn SetAriaLive(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaModal(&self) -> Option<DOMString>
fn SetAriaModal(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaMultiLine(&self) -> Option<DOMString>
fn SetAriaMultiLine(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaMultiSelectable(&self) -> Option<DOMString>
fn SetAriaMultiSelectable(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaOrientation(&self) -> Option<DOMString>
fn SetAriaOrientation(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaPlaceholder(&self) -> Option<DOMString>
fn SetAriaPlaceholder(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaPosInSet(&self) -> Option<DOMString>
fn SetAriaPosInSet(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaPressed(&self) -> Option<DOMString>
fn SetAriaPressed(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaReadOnly(&self) -> Option<DOMString>
fn SetAriaReadOnly(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRelevant(&self) -> Option<DOMString>
fn SetAriaRelevant(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRequired(&self) -> Option<DOMString>
fn SetAriaRequired(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRoleDescription(&self) -> Option<DOMString>
fn SetAriaRoleDescription(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRowCount(&self) -> Option<DOMString>
fn SetAriaRowCount(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRowIndex(&self) -> Option<DOMString>
fn SetAriaRowIndex(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRowIndexText(&self) -> Option<DOMString>
fn SetAriaRowIndexText(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaRowSpan(&self) -> Option<DOMString>
fn SetAriaRowSpan(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaSelected(&self) -> Option<DOMString>
fn SetAriaSelected(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaSetSize(&self) -> Option<DOMString>
fn SetAriaSetSize(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaSort(&self) -> Option<DOMString>
fn SetAriaSort(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaValueMax(&self) -> Option<DOMString>
fn SetAriaValueMax(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaValueMin(&self) -> Option<DOMString>
fn SetAriaValueMin(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaValueNow(&self) -> Option<DOMString>
fn SetAriaValueNow(&self, cx: &mut JSContext, value: Option<DOMString>)
fn GetAriaValueText(&self) -> Option<DOMString>
fn SetAriaValueText(&self, cx: &mut JSContext, value: Option<DOMString>)
fn EnterFormalActivationState(&self, cx: &JSContext) -> Result<(), Error>
fn ExitFormalActivationState(&self, cx: &JSContext) -> Result<(), Error>
fn Animate( &self, cx: &mut JSContext, keyframes: *mut JSObject, options: UnrestrictedDoubleOrKeyframeAnimationOptions<D>, ) -> Root<Dom<<D as DomTypes>::Animation>>
fn Before( &self, cx: &mut JSContext, nodes: Vec<NodeOrString<D>>, ) -> Result<(), Error>
fn After( &self, cx: &mut JSContext, nodes: Vec<NodeOrString<D>>, ) -> Result<(), Error>
fn ReplaceWith( &self, cx: &mut JSContext, nodes: Vec<NodeOrString<D>>, ) -> Result<(), Error>
fn Remove(&self, cx: &mut JSContext)
fn GetPreviousElementSibling( &self, ) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn GetNextElementSibling(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn Children( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::HTMLCollection>>
fn GetFirstElementChild(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn GetLastElementChild(&self) -> Option<Root<Dom<<D as DomTypes>::Element>>>
fn ChildElementCount(&self) -> u32
fn Prepend( &self, cx: &mut JSContext, nodes: Vec<NodeOrString<D>>, ) -> Result<(), Error>
fn Append( &self, cx: &mut JSContext, nodes: Vec<NodeOrString<D>>, ) -> Result<(), Error>
fn ReplaceChildren( &self, cx: &mut JSContext, nodes: Vec<NodeOrString<D>>, ) -> Result<(), Error>
fn MoveBefore( &self, cx: &mut JSContext, node: &<D as DomTypes>::Node, child: Option<&<D as DomTypes>::Node>, ) -> Result<(), Error>
fn QuerySelector( &self, cx: &mut JSContext, selectors: DOMString, ) -> Result<Option<Root<Dom<<D as DomTypes>::Element>>>, Error>
fn QuerySelectorAll( &self, cx: &mut JSContext, selectors: DOMString, ) -> Result<Root<Dom<<D as DomTypes>::NodeList>>, Error>
fn GetAssignedSlot( &self, cx: &JSContext, ) -> Option<Root<Dom<<D as DomTypes>::HTMLSlotElement>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".