The Range.selectNode() method sets the Range to contain the Node and its contents.
Range.selectNode()
MDN Reference