selectNodeContents method

void selectNodeContents(
  1. Node node
)

The Range.selectNodeContents() method sets the Range to contain the contents of a Node.

The parent Node of the start and end of the Range will be the reference node. The startOffset is 0, and the endOffset is the number of child Nodes or number of characters contained in the reference node.

Implementation

external void selectNodeContents(Node node);