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>>;
}