Logo Search packages:      
Sourcecode: lib-dom-java version File versions  Download package

Text org::w3c::dom::Text::splitText ( int  offset  )  throws DOMException

Breaks this Text node into two Text nodes at the specified offset, keeping both in the tree as siblings. This node then only contains all the content up to the offset point. And a new Text node, which is inserted as the next sibling of this node, contains all the content at and after the offset point.

Parameters:
offset The offset at which to split, starting from 0.
Returns:
The new Text node.
Exceptions:
DOMException INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of characters in data.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.


Generated by  Doxygen 1.6.0   Back to index