Results 1 - 20 of 33

Range.cloneContents()

The Range.cloneContents() returns a DocumentFragment copying the objects of type Node included in the Range.
API DOM Method Range

Range.cloneRange()

The Range.cloneRange() method returns a Range object with boundary points identical to the cloned Range.
API DOM Method Range

Range.collapse()

The Range.collapse() method collapses the Range to one of its boundary points.
API DOM Method Range

Range.commonAncestorContainer

The Range.commonAncestorContainer read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the range. This means that if Range.startContainer and Range.endContainer both refer to the same node, this node is the commonAncestorContainer.
API DOM Property Range

Range.compareBoundaryPoints()

The Range.compareBoundaryPoints() method compares the boundary points of the Range with another one.
API DOM Method Range

Range.deleteContents()

The Range.deleteContents() removes the contents of the Range from the Document.
API DOM Method Range

Range.detach()

The Range.detach() method releases a Range from use. This lets the browser choose to release resources associated with this Range. Subsequent attempts to use the detached range will result in a DOMException being thrown with an error code of INVALID_STATE_ERR.
API DOM Method Range

Range.endContainer

The Range.endContainer read-only property returns the Node within which the Range ends. To change the end position of a node, use the Range.setEnd() method or a similar one.
API DOM Property Range

Range.endOffset

The Range.endOffset read-only property returns a number representing where in the Range.endContainer the Range ends.
API DOM Property Range

Range.extractContents()

The Range.extractContents() method moves contents of the Range from the document tree into a DocumentFragment.
API DOM Method Range

Range.insertNode()

The Range.insertNode() method inserts a node at the start of the Range.
API DOM Method Range

Range.selectNode()

The Range.selectNode() method sets the Range to contain the Node and its contents. The parent Node of the start and end of the Range will be the same as the parent of the referenceNode.
API DOM Method Range

Range.selectNodeContents()

The Range.selectNodeContents() sets the Range to contain the contents of a Node.
API DOM Method Range

Range.setEnd()

The Range.setEnd() method sets the end position of a Range.
API DOM Method Range

Range.setEndAfter()

The Range.setEndAfter() method sets the end position of a Range relative to another Node. The parent Node of end of the Range will be the same as that for the referenceNode.
API DOM Method Range

Range.setEndBefore()

The Range.setEndBefore() method sets the end position of a Range relative to another Node. The parent Node of end of the Range will be the same as that for the referenceNode.
API DOM Method Range

Range.setStart()

The Range.setStart() method sets the start position of a Range.
API DOM Method Range

Range.setStartAfter()

The Range.setStartAfter() method sets the start position of a Range relative to a Node. The parent Node of the start of the Range will be the same as that for the referenceNode.
API DOM Method Range

Range.setStartBefore()

The Range.setStartBefore() method sets the start position of a Range relative to another Node. The parent Node of the start of the Range will be the same as that for the referenceNode.
API DOM Method Range

Range.startContainer

The Range.startContainer read-only property returns the Node within which the Range starts. To change the start position of a node, use one of the Range.setStart() methods.
API DOM Property Range