public interface CharacterData extends Node:
Base interface for textual DOM nodes.
import org.w3c.dom
text as CharacterData = document.createTextNode("hello")
text.appendData(" world")| Modifier and Type | Member | Description |
|---|---|---|
| public property | datadata as String |
Textual content carried by this character data node. |
| public readonly property | lengthlength as Int |
Number of characters in the data property. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | appendDataappendData(arg as String) as Void throws DOMException |
Appends text to this node. |
| public | deleteDatadeleteData(offset as Int, count as Int) as Void throws DOMException |
Deletes a range of text. |
| public | insertDatainsertData(offset as Int, arg as String) as Void throws DOMException |
Inserts text at the given offset. |
| public | replaceDatareplaceData(offset as Int, count as Int, arg as String) as Void throws DOMException |
Replaces a range of text. |
| public | substringDatasubstringData(offset as Int, count as Int) as String throws DOMException |
Returns a substring of the node data. |