Section 25.240. Range.selectNodeContents( ): set range boundaries to the children of a node


25.240. Range.selectNodeContents( ): set range boundaries to the children of a node

DOM Level 2 Range

25.240.1. Synopsis

 void selectNodeContents(Node refNode)     tHRows RangeException, DOMException; 

25.240.1.1. Arguments

refNode

The node whose children are to become the contents of this range.

25.240.1.2. Throws

A RangeException with a code of INVALID_NODE_TYPE_ERR if refNode or one of its ancestors 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.

25.240.2. Description

This method sets the boundary points of this range so that the range contains the children of refNode.

25.240.3. See Also

Range.selectNode( )




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