pub(crate) trait CharacterDataMethods<D: DomTypes> {
Show 14 methods // Required methods fn Data(&self) -> DOMString; fn SetData(&self, value: DOMString); fn Length(&self) -> u32; fn SubstringData(&self, offset: u32, count: u32) -> Fallible<DOMString>; fn AppendData(&self, data: DOMString); fn InsertData(&self, offset: u32, data: DOMString) -> Fallible<()>; fn DeleteData(&self, offset: u32, count: u32) -> Fallible<()>; fn ReplaceData( &self, offset: u32, count: u32, data: DOMString, ) -> Fallible<()>; fn Before( &self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc, ) -> Fallible<()>; fn After(&self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc) -> Fallible<()>; fn ReplaceWith( &self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc, ) -> Fallible<()>; fn Remove(&self); fn GetPreviousElementSibling(&self) -> Option<DomRoot<D::Element>>; fn GetNextElementSibling(&self) -> Option<DomRoot<D::Element>>;
}

Required Methods§

Source

fn Data(&self) -> DOMString

Source

fn SetData(&self, value: DOMString)

Source

fn Length(&self) -> u32

Source

fn SubstringData(&self, offset: u32, count: u32) -> Fallible<DOMString>

Source

fn AppendData(&self, data: DOMString)

Source

fn InsertData(&self, offset: u32, data: DOMString) -> Fallible<()>

Source

fn DeleteData(&self, offset: u32, count: u32) -> Fallible<()>

Source

fn ReplaceData(&self, offset: u32, count: u32, data: DOMString) -> Fallible<()>

Source

fn Before(&self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc) -> Fallible<()>

Source

fn After(&self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc) -> Fallible<()>

Source

fn ReplaceWith( &self, nodes: Vec<NodeOrString<D>>, _can_gc: CanGc, ) -> Fallible<()>

Source

fn Remove(&self)

Source

fn GetPreviousElementSibling(&self) -> Option<DomRoot<D::Element>>

Source

fn GetNextElementSibling(&self) -> Option<DomRoot<D::Element>>

Implementors§