Text
interfacein packageorg.w3c.dom
public interface Text extends CharacterData:
import org.w3c.dom
text = document.createTextNode("content")
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 readonly property |
isElementContentWhitespaceisElementContentWhitespace as Boolean |
True when this node contains ignorable element-content whitespace. |
| public readonly property |
wholeText |
Contiguous text content around this text node. |
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 |
replaceWholeText |
Replaces all logically adjacent text with the given content. |
| public |
splitText |
Splits this text node at the given offset. |
Methods inherited from Node: appendChild,
cloneNode,
compareDocumentPosition,
getAttribute,
getFeature,
getUserData,
hasAttributes,
hasChildNodes,
insertBefore,
isDefaultNamespace,
isEqualNode,
isSameNode,
isSupported,
lookupNamespaceURI,
lookupPrefix,
normalize,
removeChild,
replaceChild,
setUserData