CharacterData
interface in package org.w3c.dom

    public interface CharacterData extends Node:

Node
└ CharacterData

Base interface for textual DOM nodes.

    import org.w3c.dom

    text as CharacterData = document.createTextNode("hello")
    text.appendData(" world")

Attributes inherited from Node: ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | data `data as String` | Textual content carried by this character data node.
public readonly property | length `length as Int` | Number of characters in the data property.

Properties inherited from Node: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Methods

Modifier and Type | Member | Description
--- | --- | ---
public | appendData `appendData(arg as String) as Void throws DOMException` | Appends text to this node.
public | deleteData `deleteData(offset as Int, count as Int) as Void throws DOMException` | Deletes a range of text.
public | insertData `insertData(offset as Int, arg as String) as Void throws DOMException` | Inserts text at the given offset.
public | replaceData `replaceData(offset as Int, count as Int, arg as String) as Void throws DOMException` | Replaces a range of text.
public | substringData `substringData(offset as Int, count as Int) as String throws DOMException` | Returns a substring of the node data.

Methods inherited from Node: appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData