CharacterData : Node The base class for %%/Text|Text%%, %%/Comment|Comment%%, and %%/ProcessingInstruction|ProcessingInstruction%% Node types. Spec: https://dom.spec.whatwg.org/#characterdata ---- instance.data : String The text in the node.
Foo
---- instance.length : Number The length of %%#data|**data**%%.
Foo
ReadOnly: true ---- prototype.appendData(data : String) : undefined Appends **data** to the end of the %%#data|**this.data**%%.
Foo
---- prototype.deleteData(offset : Number, count : Number) : undefined Deletes **count** characters of %%#data|**this.data**%% starting at **offset**.
Some Text Data
---- prototype.insertData(offset : Number, data : String) : undefined Inserts **data** into %%#data|**this.data**%% at **offset**.
Some Data
---- prototype.remove() : undefined Removes **this** from %%/Node#parentNode|**parentNode**%%'s children.
Some Data
---- prototype.replaceData(offset : Number, count : Number, data : String) : undefined Replaces **count** characters of text at **offset** in %%#data|**this.data**%% with **data**.
Some Text Data
---- prototype.substringData(offset : Number, count : Number) : String Returns a substring of %%#data|this.data%% starting at **offset** and of the specified **count** of characters.
Some Text Data