Skip to content

StaticRange

Types

t

type t = WebAPI.AbstractRange.t = {
startContainer: WebAPI.DOMTree.node,
startOffset: int,
endContainer: WebAPI.DOMTree.node,
endOffset: int,
collapsed: bool,
}

Record fields

startContainer

Returns range's start node. Read more on MDN

startOffset
int

Returns range's start offset. Read more on MDN

endContainer

Returns range's end node. Read more on MDN

endOffset
int

Returns range's end offset. Read more on MDN

collapsed
bool

Returns true if range is collapsed, and false otherwise. Read more on MDN