Section 25.239. Range.selectNode(): set range boundaries to a node


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

refNode

The node to be "selected" (i.e., the node that is to become the content of this range).

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( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net