public substringData(offset as Int, count as Int) as String throws DOMException:
Reads up to count UTF-16 units, clipping at the end.
| Parameter | Description |
|---|---|
offset | Zero-based UTF-16 offset, including length. |
count | Maximum number of UTF-16 units to return. |
Requested text, or an empty string at the end.
tail = document.createTextNode("hello").substringData(1, 100)
assert tail == "ello"