JavaScript: The Definitive Guide
25.239. Range.selectNode(): set range boundaries to a node
DOM Level 2 Range
25.239.1. Synopsis
void selectNode(Node refNode) tHRows RangeException, DOMException; 25.239.1.1. Arguments
25.239.1.2. Throws
A 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. Description
This method sets the contents of this range to the specified refNodei.e., it "selects" the node and its descendants. 25.239.3. See Also
Range.selectNodeContents( ) |
Категории