25.239. Range.selectNode(): set range boundaries to a nodeDOM Level 2 Range25.239.1. Synopsisvoid selectNode(Node refNode) tHRows RangeException, DOMException; 25.239.1.1. Arguments
25.239.1.2. ThrowsA RangeException with a code of INVALID_NODE_TYPE_ERR if refNode is an Attr, Document, or DocumentFragment. 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. 25.239.2. DescriptionThis method sets the contents of this range to the specified refNodei.e., it "selects" the node and its descendants. 25.239.3. See AlsoRange.selectNodeContents( ) |