Package-level declarations

Types

Link copied to clipboard
interface ElementTarget

An interface for finding some target element, relative to some given initial element.

Link copied to clipboard
external interface GetComposedRangesOptions
Link copied to clipboard
external class Selection
Link copied to clipboard
external class StaticRange

Properties

Link copied to clipboard

Returns a sequence of all ancestors of this element, starting with the element itself.

Link copied to clipboard

Returns a sequence of all descendants of this element, starting with the element itself, in a breadth-first manner.

Link copied to clipboard

Returns a sequence of all descendants of this element, starting with the element itself, in a depth-first manner.

Functions

Link copied to clipboard
Link copied to clipboard
fun Document.generateUniqueId(len: Int = 6, prefix: String = ""): String

Generates an element ID guaranteed unique for the current Document.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun StaticRange(startContainer: Node, startOffset: Int, endContainer: Node, endOffset: Int): StaticRange