Share this Page URL
Help

Chapter 25. W3C DOM Reference > Range.selectNode( ) - Pg. 863

See Also DocumentFragment, Node.normalize( ) Range.selectNode( ) Availability Synopsis DOM Level 2 Range void selectNode(Node refNode) throws RangeException, DOMException; set range boundaries to a node Arguments refNode The node to be "selected" (i.e., the node that is to become the content of this range). Throws A RangeException with a code of INVALID_NODE_TYPE_ERR if refNode is an Attr, Document, DocumentFragment, Entity, or Notation node, or if any ancestor of refNode is a Document- Type, Entity, or Notation 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. Description