August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Range.selectNode(): set range boundaries to a node — DOM Level 2 Range
void selectNode(NoderefNode)
throws RangeException, DOMException;refNode
The node to be “selected” (i.e., the node that is to become the content of this range).
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.
This method sets the contents of this range to the specified
refNode—i.e., it “selects” the node and
its descendants.
Range.selectNodeContents(
)
Read now
Unlock full access