pub 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) -> Result<DOMString, Error>;
fn AppendData(&self, data: DOMString);
fn InsertData(&self, offset: u32, data: DOMString) -> Result<(), Error>;
fn DeleteData(&self, offset: u32, count: u32) -> Result<(), Error>;
fn ReplaceData(
&self,
offset: u32,
count: u32,
data: DOMString,
) -> Result<(), Error>;
fn Before(
&self,
nodes: Vec<NodeOrString>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn After(
&self,
nodes: Vec<NodeOrString>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn ReplaceWith(
&self,
nodes: Vec<NodeOrString>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn Remove(&self);
fn GetPreviousElementSibling(&self) -> Option<Root<Dom<Element>>>;
fn GetNextElementSibling(&self) -> Option<Root<Dom<Element>>>;
}