pub trait ElementMethods {
Show 76 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, value: DOMString); fn ClassName(&self) -> DOMString; fn SetClassName(&self, value: DOMString); fn ClassList(&self) -> Root<Dom<DOMTokenList>>; fn HasAttributes(&self) -> bool; fn Attributes(&self) -> Root<Dom<NamedNodeMap>>; fn GetAttributeNames(&self) -> Vec<DOMString> ; fn GetAttribute(&self, name: DOMString) -> Option<DOMString>; fn GetAttributeNS(
        &self,
        namespace: Option<DOMString>,
        localName: DOMString
    ) -> Option<DOMString>; fn ToggleAttribute(
        &self,
        name: DOMString,
        force: Option<bool>
    ) -> Result<bool, Error>; fn SetAttribute(&self, name: DOMString, value: DOMString) -> Result<(), Error>; fn SetAttributeNS(
        &self,
        namespace: Option<DOMString>,
        name: DOMString,
        value: DOMString
    ) -> Result<(), Error>; fn RemoveAttribute(&self, name: DOMString); fn RemoveAttributeNS(
        &self,
        namespace: Option<DOMString>,
        localName: DOMString
    ); fn HasAttribute(&self, name: DOMString) -> bool; fn HasAttributeNS(
        &self,
        namespace: Option<DOMString>,
        localName: DOMString
    ) -> bool; fn GetAttributeNode(&self, name: DOMString) -> Option<Root<Dom<Attr>>>; fn GetAttributeNodeNS(
        &self,
        namespace: Option<DOMString>,
        localName: DOMString
    ) -> Option<Root<Dom<Attr>>>; fn SetAttributeNode(
        &self,
        attr: &Attr
    ) -> Result<Option<Root<Dom<Attr>>>, Error>; fn SetAttributeNodeNS(
        &self,
        attr: &Attr
    ) -> Result<Option<Root<Dom<Attr>>>, Error>; fn RemoveAttributeNode(
        &self,
        oldAttr: &Attr
    ) -> Result<Root<Dom<Attr>>, Error>; fn Closest(
        &self,
        selectors: DOMString
    ) -> Result<Option<Root<Dom<Element>>>, Error>; fn Matches(&self, selectors: DOMString) -> Result<bool, Error>; fn WebkitMatchesSelector(&self, selectors: DOMString) -> Result<bool, Error>; fn GetElementsByTagName(
        &self,
        localName: DOMString
    ) -> Root<Dom<HTMLCollection>>; fn GetElementsByTagNameNS(
        &self,
        namespace: Option<DOMString>,
        localName: DOMString
    ) -> Root<Dom<HTMLCollection>>; fn GetElementsByClassName(
        &self,
        classNames: DOMString
    ) -> Root<Dom<HTMLCollection>>; fn InsertAdjacentElement(
        &self,
        where_: DOMString,
        element: &Element
    ) -> Result<Option<Root<Dom<Element>>>, Error>; fn InsertAdjacentText(
        &self,
        where_: DOMString,
        data: DOMString
    ) -> Result<(), Error>; fn InsertAdjacentHTML(
        &self,
        position: DOMString,
        html: DOMString
    ) -> Result<(), Error>; fn AttachShadow(&self) -> Result<Root<Dom<ShadowRoot>>, Error>; fn GetClientRects(&self) -> Vec<Root<Dom<DOMRect>>> ; fn GetBoundingClientRect(&self) -> Root<Dom<DOMRect>>; fn Scroll(&self, options: &ScrollToOptions); fn Scroll_(&self, x: f64, y: f64); fn ScrollTo(&self, options: &ScrollToOptions); fn ScrollTo_(&self, x: f64, y: f64); fn ScrollBy(&self, options: &ScrollToOptions); fn ScrollBy_(&self, x: f64, y: f64); fn ScrollTop(&self) -> f64; fn SetScrollTop(&self, value: f64); fn ScrollLeft(&self) -> f64; fn SetScrollLeft(&self, value: f64); fn ScrollWidth(&self) -> i32; fn ScrollHeight(&self) -> i32; fn ClientTop(&self) -> i32; fn ClientLeft(&self) -> i32; fn ClientWidth(&self) -> i32; fn ClientHeight(&self) -> i32; fn GetInnerHTML(&self) -> Result<DOMString, Error>; fn SetInnerHTML(&self, value: DOMString) -> Result<(), Error>; fn GetOuterHTML(&self) -> Result<DOMString, Error>; fn SetOuterHTML(&self, value: DOMString) -> Result<(), Error>; fn RequestFullscreen(&self) -> Rc<Promise>; fn EnterFormalActivationState(&self) -> Result<(), Error>; fn ExitFormalActivationState(&self) -> Result<(), Error>; fn Before(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>; fn After(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>; fn ReplaceWith(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>; fn Remove(&self); fn GetPreviousElementSibling(&self) -> Option<Root<Dom<Element>>>; fn GetNextElementSibling(&self) -> Option<Root<Dom<Element>>>; fn Children(&self) -> Root<Dom<HTMLCollection>>; fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>; fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>; fn ChildElementCount(&self) -> u32; fn Prepend(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>; fn Append(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>; fn ReplaceChildren(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>; fn QuerySelector(
        &self,
        selectors: DOMString
    ) -> Result<Option<Root<Dom<Element>>>, Error>; fn QuerySelectorAll(
        &self,
        selectors: DOMString
    ) -> Result<Root<Dom<NodeList>>, Error>;
}

Required Methods

Implementors