interface Range
implements AbstractRange
import { type Range } from "https://deno.land/x/evt@v2.5.6/lib/types/lib.dom.ts";
A fragment of a document that can contain nodes and parts of text nodes.
Properties
readonly
commonAncestorContainer: NodeReturns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
Methods
cloneContents(): DocumentFragment
cloneRange(): Range
compareBoundaryPoints(how: number, sourceRange: Range): number
comparePoint(node: Node, offset: number): number
Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
createContextualFragment(fragment: string): DocumentFragment
extractContents(): DocumentFragment
getBoundingClientRect(): DOMRect
getClientRects(): DOMRectList
insertNode(node: Node): void
intersectsNode(node: Node): boolean
Returns whether range intersects node.
isPointInRange(node: Node, offset: number): boolean
selectNode(node: Node): void
selectNodeContents(node: Node): void
setEnd(node: Node, offset: number): void
setEndAfter(node: Node): void
setEndBefore(node: Node): void
setStart(node: Node, offset: number): void
setStartAfter(node: Node): void
setStartBefore(node: Node): void
surroundContents(newParent: Node): void