AvailabilityDOM Level 2 Range Synopsisvoid selectNode(Node refNode) throws RangeException, DOMException; Arguments
ThrowsA 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 DocumentType, 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. DescriptionThis method sets the contents of this range to the specified refNode. That is, it "selects" the node and its descendants. See Also |