substringData: offset, count
This returns a DOMString
that contains a subset of the
string stored in the data
attribute. The offset
and
count
arguments define the
substring. Although the offset
argument must represent a valid position within the node data, the
end-point of the substring could fall past the end of the data
attribute. If this happens, the
method returns everything between the offset
position and the end of the
data
string.
Zero-based, starting offset of the substring to
return. A valid offset must be >= 0 and < the length
attribute of the
node.
Count of characters to return.
Raised if the given offset is < 0, >= the
length
attribute, or if
the count
parameter is
negative.
Raised if the value that would be returned is too
large to be contained by a DOMString
type in the given
implementation.