Both points must resolve inside the same root. The primary document is
implicit; extra roots are stored on each point with root.
Get the start and end points of a range, in the order in which they appear in the document.
Options: {reverse?: boolean}
Get the end point of a range according to the order in which it appears in the document.
Get the intersection of one range with another. If the two ranges do not overlap, return null.
Iterate through the two point entries in a Range. First it will yield a PointEntry representing the anchor, then it will yield a PointEntry representing the focus.
Get the start point of a range according to the order in which it appears in the document.
Check some attribute of a Range. Always returns a boolean.
Check if a range is exactly equal to another.
Check if a range includes a path, a point, or part of another range.
For clarity, includes can mean partial inclusion. Another way to describe
this is that one range intersects the other range.
Check if a range includes another range.
Check if a range is backward, meaning that its anchor point appears after its focus point in the document.
Check if a range is collapsed, meaning that both its anchor and focus points refer to the exact same position in the document.
Check if a range is expanded. This is the opposite of RangeApi.isCollapsed and is provided for legibility.
Check if a range is forward. This is the opposite of RangeApi.isBackward and is provided for legibility.
Check if a value implements the Range interface.