pub trait NodeMethods {
Show 31 methods // Required methods fn NodeType(&self) -> u16; fn NodeName(&self) -> DOMString; fn BaseURI(&self) -> USVString; fn IsConnected(&self) -> bool; fn GetOwnerDocument(&self) -> Option<Root<Dom<Document>>>; fn GetRootNode(&self, options: &GetRootNodeOptions) -> Root<Dom<Node>>; fn GetParentNode(&self) -> Option<Root<Dom<Node>>>; fn GetParentElement(&self) -> Option<Root<Dom<Element>>>; fn HasChildNodes(&self) -> bool; fn ChildNodes(&self) -> Root<Dom<NodeList>>; fn GetFirstChild(&self) -> Option<Root<Dom<Node>>>; fn GetLastChild(&self) -> Option<Root<Dom<Node>>>; fn GetPreviousSibling(&self) -> Option<Root<Dom<Node>>>; fn GetNextSibling(&self) -> Option<Root<Dom<Node>>>; fn GetNodeValue(&self) -> Option<DOMString>; fn SetNodeValue(&self, value: Option<DOMString>); fn GetTextContent(&self) -> Option<DOMString>; fn SetTextContent(&self, value: Option<DOMString>, _can_gc: CanGc); fn Normalize(&self); fn CloneNode( &self, deep: bool, _can_gc: CanGc, ) -> Result<Root<Dom<Node>>, Error>; fn IsEqualNode(&self, node: Option<&Node>) -> bool; fn IsSameNode(&self, otherNode: Option<&Node>) -> bool; fn CompareDocumentPosition(&self, other: &Node) -> u16; fn Contains(&self, other: Option<&Node>) -> bool; fn LookupPrefix(&self, namespace: Option<DOMString>) -> Option<DOMString>; fn LookupNamespaceURI(&self, prefix: Option<DOMString>) -> Option<DOMString>; fn IsDefaultNamespace(&self, namespace: Option<DOMString>) -> bool; fn InsertBefore( &self, node: &Node, child: Option<&Node>, ) -> Result<Root<Dom<Node>>, Error>; fn AppendChild(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>; fn ReplaceChild( &self, node: &Node, child: &Node, ) -> Result<Root<Dom<Node>>, Error>; fn RemoveChild(&self, child: &Node) -> Result<Root<Dom<Node>>, Error>;
}

Required Methods§

source

fn NodeType(&self) -> u16

source

fn NodeName(&self) -> DOMString

source

fn BaseURI(&self) -> USVString

source

fn IsConnected(&self) -> bool

source

fn GetOwnerDocument(&self) -> Option<Root<Dom<Document>>>

source

fn GetRootNode(&self, options: &GetRootNodeOptions) -> Root<Dom<Node>>

source

fn GetParentNode(&self) -> Option<Root<Dom<Node>>>

source

fn GetParentElement(&self) -> Option<Root<Dom<Element>>>

source

fn HasChildNodes(&self) -> bool

source

fn ChildNodes(&self) -> Root<Dom<NodeList>>

source

fn GetFirstChild(&self) -> Option<Root<Dom<Node>>>

source

fn GetLastChild(&self) -> Option<Root<Dom<Node>>>

source

fn GetPreviousSibling(&self) -> Option<Root<Dom<Node>>>

source

fn GetNextSibling(&self) -> Option<Root<Dom<Node>>>

source

fn GetNodeValue(&self) -> Option<DOMString>

source

fn SetNodeValue(&self, value: Option<DOMString>)

source

fn GetTextContent(&self) -> Option<DOMString>

source

fn SetTextContent(&self, value: Option<DOMString>, _can_gc: CanGc)

source

fn Normalize(&self)

source

fn CloneNode( &self, deep: bool, _can_gc: CanGc, ) -> Result<Root<Dom<Node>>, Error>

source

fn IsEqualNode(&self, node: Option<&Node>) -> bool

source

fn IsSameNode(&self, otherNode: Option<&Node>) -> bool

source

fn CompareDocumentPosition(&self, other: &Node) -> u16

source

fn Contains(&self, other: Option<&Node>) -> bool

source

fn LookupPrefix(&self, namespace: Option<DOMString>) -> Option<DOMString>

source

fn LookupNamespaceURI(&self, prefix: Option<DOMString>) -> Option<DOMString>

source

fn IsDefaultNamespace(&self, namespace: Option<DOMString>) -> bool

source

fn InsertBefore( &self, node: &Node, child: Option<&Node>, ) -> Result<Root<Dom<Node>>, Error>

source

fn AppendChild(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>

source

fn ReplaceChild( &self, node: &Node, child: &Node, ) -> Result<Root<Dom<Node>>, Error>

source

fn RemoveChild(&self, child: &Node) -> Result<Root<Dom<Node>>, Error>

Implementors§