Programmer's Guide > Interfaces > W3C CharacterData interface > data attribute
  
data attribute
The character data of the node that implements this interface. The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a CharacterData node. However, implementation limits may mean that the entirety of a node's data may not fit into a single DOMString. In such cases, the user may call substringData to retrieve the data in appropriately sized pieces.
data
Access
read-write
Returns
String
Get throws
DOMException
DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.
Set throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.