XML DOM selectNodeContents() method
Definition and usage
The selectNodeContents() method sets the boundary of the range to the child node of a node.
Syntax:
selectNodeContents(refNode)
Parameters
Parameters | Description |
---|---|
refNode | its child nodes will become the nodes that are the content of the current range. |
throw
If refNode or one of its ancestor nodes is a DocumentType, Entity, or Notation node, the method will throw a code of INVALID_NODE_TYPE_ERR RangeException exception.
If refNode If the document owned by the method is different from the document that created the range, the method will throw a code of WRONG_DOCUMENT_ERR DOMException exception.
Description
This method sets the boundary point of the range to include refNode child nodes.