25.241. Range.setEnd( ): set the end point of a rangeDOM Level 2 Range25.241.1. Synopsisvoid setEnd(Node refNode, long offset) throws RangeException, DOMException; 25.241.1.1. Arguments
25.241.1.2. ThrowsA RangeException with a code of INVALID_NODE_TYPE_ERR if refNode or one of its ancestors is a DocumentType node. A DOMException with a code of WRONG_DOCUMENT_ERR if refNode is part of a different document than the one through which this range was created, or a code of INDEX_SIZE_ERR if offset is negative or is greater than the number of children or characters in refNode. 25.241.2. DescriptionThis method sets the end point of a range by specifying the values of the endContainer and endOffset properties. |