WebDOMText - Kirix Documentation

Developer Resources

WebDOMText

Overview

The WebDOMText class represents a DOM text node.

Base Class

WebDOMNode

Constructor

WebDOMText()

Methods

WebDOMText.getData
Gets the data of the text node.
WebDOMText.setData
Sets the data for the text node.

Inherited Methods

WebDOMNode.appendChild
Appends a child node to this node.
WebDOMNode.cloneNode
Clones this node.
WebDOMNode.getAttributes
Gets the attributes of this node.
WebDOMNode.getChildNodes
Gets the child nodes of this node.
WebDOMNode.getFirstChild
Gets the first child node of this node.
WebDOMNode.getLastChild
Gets the last child node of this node.
WebDOMNode.getLocalName
Returns the local name
WebDOMNode.getNamespaceURI
Returns the namespace URI
WebDOMNode.getNextSibling
Gets the next sibling node of this node.
WebDOMNode.getNodeName
Gets the name of this node.
WebDOMNode.getNodeType
Gets the type of this node.
WebDOMNode.getNodeValue
Gets the value of this node.
WebDOMNode.getOwnerDocument
Gets the document to which the node belongs.
WebDOMNode.getParentNode
Gets the parent node of this node.
WebDOMNode.getPrefix
Returns the prefix
WebDOMNode.getPreviousSibling
Gets the previous sibling node of this node.
WebDOMNode.hasAttributes
Returns true if this node has attributes, and false otherwise.
WebDOMNode.hasChildNodes
Returns true if this node has child nodes, and false otherwise.
WebDOMNode.insertBefore
Inserts a child node before another child node within this node's children.
WebDOMNode.isSupported
Determines if a feature in a particular version is supported.
WebDOMNode.normalize
Removes all empty text nodes and consolidates adjacent text nodes into a single node.
WebDOMNode.removeChild
Removes a child node from this node.
WebDOMNode.replaceChild
Replaces a child node of this node with another node.
WebDOMNode.setNodeValue
Sets the value of this node.
WebDOMNode.setPrefix
Sets the prefix

WebDOMText.getData

WebDOMText.getData() : String

Returns

The data of the text node.

Description

Gets the data of the text node.

WebDOMText.setData

WebDOMText.setData(text : String) : Boolean

Arguments

text
The text to which to set the data of the text node.

Returns

True if the data was set, and false otherwise.

Description

Sets the data for the text node. Returns true if the data was set, and false otherwise.