Skip to main content

StaticRange

The DOM StaticRange interface extends AbstractRange to provide a method to specify a range of content in the DOM whose contents don't update to reflect changes which occur within the DOM tree.

MDN Reference

Extends

Properties

collapsed

readonly collapsed: boolean;

The read-only collapsed property of the AbstractRange interface returns true if the range's start position and end position are the same.

MDN Reference

Inherited from

AbstractRange.collapsed


endContainer

readonly endContainer: Node;

The read-only endContainer property of the AbstractRange interface returns the Node in which the end of the range is located.

MDN Reference

Inherited from

AbstractRange.endContainer


endOffset

readonly endOffset: number;

The endOffset property of the AbstractRange interface returns the offset into the end node of the range's end position.

MDN Reference

Inherited from

AbstractRange.endOffset


startContainer

readonly startContainer: Node;

The read-only startContainer property of the AbstractRange interface returns the Node in which the start of the range is located.

MDN Reference

Inherited from

AbstractRange.startContainer


startOffset

readonly startOffset: number;

The read-only startOffset property of the AbstractRange interface returns the offset into the start node of the range's start position.

MDN Reference

Inherited from

AbstractRange.startOffset