Options
All
  • Public
  • Public/Protected
  • All
Menu

A fragment of a document that can contain nodes and parts of text nodes.

Hierarchy

Index

Properties

END_TO_END: number
END_TO_START: number
START_TO_END: number
START_TO_START: number
collapsed: boolean

Returns true if range is collapsed, and false otherwise.

commonAncestorContainer: internal.Node

Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.

endContainer: internal.Node

Returns range's end node.

endOffset: number

Returns range's end offset.

startContainer: internal.Node

Returns range's start node.

startOffset: number

Returns range's start offset.

Methods

  • Returns internal.Range

  • collapse(toStart?: boolean): void
  • Parameters

    • Optional toStart: boolean

    Returns void

  • compareBoundaryPoints(how: number, sourceRange: internal.Range): number
  • Parameters

    Returns 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.

    Parameters

    Returns number

  • deleteContents(): void
  • Returns void

  • detach(): void
  • Returns void

  • Returns internal.DOMRect

  • Parameters

    Returns void

  • Returns whether range intersects node.

    Parameters

    Returns boolean

  • isPointInRange(node: internal.Node, offset: number): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • toString(): string
  • Returns string

Generated using TypeDoc