org.w3c.dom.Text.splitText
method
public splitText(offset as Int) as Text throws DOMException
Description

Splits this text node at the given offset.

Parameters
ParameterDescription
offsetSplit offset.
Returns

New text node containing the trailing content.

Throws
  • DOMException if the offset is invalid.
Example
second = text.splitText(3)