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
|
appendDataarg
|
|
Parameters
|
Stringarg
The DOMString to append.
|
Returns
|
void
|
Throws
|
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
deleteDataoffsetcount
|
|
Parameters
|
unsigned longoffset
The offset from which to start removing.
unsigned longcount
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.
|
insertDataoffsetarg
|
|
Parameters
|
unsigned longoffset
The character offset at which to insert.
Stringarg
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.
|
replaceDataoffsetcountarg
|
|
Parameters
|
unsigned longoffset
The offset from which to start replacing.
unsigned longcount
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).
Stringarg
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.
|
substringDataoffsetcount
|
|
Parameters
|
unsigned longoffset
Start offset of substring to extract.
unsigned longcount
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.
|