|
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.
|
|
length
|
|
|
Access
|
read-only
|
|
Returns
|
unsigned long
|
|
appendData arg
|
|
|
Parameters
|
String arg
The DOMString to append.
|
|
Returns
|
void
|
|
Throws
|
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
|
deleteData offset count
|
|
|
Parameters
|
unsigned long offset
The offset from which to start removing.
unsigned long count
The number of 16-bit units to delete. If the sum of offset and count exceeds length then all 16-bit units from offset to the end of the data are deleted.
|
|
Returns
|
void
|
|
Throws
|
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
|
insertData offset arg
|
|
|
Parameters
|
unsigned long offset
The character offset at which to insert.
String arg
The DOMString to insert.
|
|
Returns
|
void
|
|
Throws
|
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
|
replaceData offset count arg
|
|
|
Parameters
|
unsigned long offset
The offset from which to start replacing.
unsigned long count
The number of 16-bit units to replace. If the sum of offset and count exceeds length, then all 16-bit units to the end of the data are replaced; (i.e., the effect is the same as a remove method call with the same range, followed by an append method invocation).
String arg
The DOMString with which the range must be replaced.
|
|
Returns
|
void
|
|
Throws
|
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
|
substringData offset count
|
|
|
Parameters
|
unsigned long offset
Start offset of substring to extract.
unsigned long count
The number of 16-bit units to extract.
|
|
Returns
|
String. The specified substring. If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned.
|
|
Throws
|
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.
DOMSTRING_SIZE_ERR: Raised if the specified range of text does not fit into a DOMString.
|