Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface AbstractRange

The AbstractRange abstract interface is the base class upon which all DOM range types are defined. A range is an object that indicates the start and end points of a section of content within the document.

MDN Reference

interface AbstractRange {
    collapsed: boolean;
    endContainer: Node;
    endOffset: number;
    startContainer: Node;
    startOffset: number;
}

Hierarchy (View Summary)

Index
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

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

endOffset: number

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

MDN Reference

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

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

Was this helpful?