Properties

Link copied to clipboard

Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.

Link copied to clipboard
Link copied to clipboard

Returns node's node document's document base URL.

Link copied to clipboard

node is a CDATASection node.

Link copied to clipboard
Link copied to clipboard

Returns the children.

Link copied to clipboard

Returns the child elements.

Link copied to clipboard
Link copied to clipboard

node is a Comment node.

Link copied to clipboard
Link copied to clipboard

node is a DocumentFragment node.

Link copied to clipboard

node is a document.

Link copied to clipboard

Set when other is a descendant of node.

Link copied to clipboard

Set when other is an ancestor of node.

Link copied to clipboard

Set when node and other are not in the same tree.

Link copied to clipboard

Set when other is following node.

Link copied to clipboard

Set when other is preceding node.

Link copied to clipboard

node is a doctype.

Link copied to clipboard

node is an element.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the first child.

Link copied to clipboard

Returns the first child that is an element, and null otherwise.

Link copied to clipboard

Returns document's fullscreen element.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns true if node is connected and false otherwise.

Link copied to clipboard

Returns the last child.

Link copied to clipboard

Returns the last child that is an element, and null otherwise.

Link copied to clipboard
Link copied to clipboard

Returns the next sibling.

Link copied to clipboard

Returns a string appropriate for the type of node.

Link copied to clipboard

Returns the type of node.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val ownerDocument: Document

Returns the node document. Returns null for documents.

Link copied to clipboard

Returns the parent element.

Link copied to clipboard

Returns the parent.

Link copied to clipboard
Link copied to clipboard

Returns the previous sibling.

Link copied to clipboard

node is a ProcessingInstruction node.

Link copied to clipboard
Link copied to clipboard

Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.

Link copied to clipboard

node is a Text node.

Link copied to clipboard

Functions

Link copied to clipboard
open fun append(vararg nodes: Any)

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Link copied to clipboard
Link copied to clipboard
fun cloneNode(deep: Boolean = definedExternally): Node

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

Link copied to clipboard

Returns a bitmask indicating the position of other relative to node.

Link copied to clipboard
fun contains(other: Node?): Boolean

Returns true if other is an inclusive descendant of node, and false otherwise.

Link copied to clipboard
Link copied to clipboard

Returns the element for the specified x coordinate and the specified y coordinate.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getElementById(elementId: String): HTMLElement?

Returns the first element within node's descendants whose ID is elementId.

Link copied to clipboard
fun getHTML(options: GetHTMLOptions = definedExternally): String
Link copied to clipboard
fun getRootNode(options: GetRootNodeOptions = definedExternally): Node

Returns node's root.

Link copied to clipboard

Returns whether node has children.

Link copied to clipboard
fun <T : Node> insertBefore(node: T, child: Node?): T
Link copied to clipboard
Link copied to clipboard
fun isEqualNode(otherNode: Node?): Boolean

Returns whether node and otherNode have the same properties.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun normalize()

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

Link copied to clipboard
open fun prepend(vararg nodes: Any)

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Link copied to clipboard
open fun querySelector(selectors: String): Element?
open fun <T : MathMLElement> querySelector(selectors: MathMLTagName<T>): T?
open fun <T : SVGElement> querySelector(selectors: SvgTagName<T>): T?

open fun <T : HTMLElement> querySelector(selectors: HtmlTagName<T>): T?

Returns the first element that is a descendant of node that matches selectors.

Link copied to clipboard
open fun querySelectorAll(selectors: String): NodeListOf<Element>
open fun <T : SVGElement> querySelectorAll(selectors: SvgTagName<T>): NodeListOf<T>

open fun <T : HTMLElement> querySelectorAll(selectors: HtmlTagName<T>): NodeListOf<T>

Returns all element descendants of node that match selectors.

Link copied to clipboard
fun <T : Node> removeChild(child: T): T
Link copied to clipboard
fun <T : Node> replaceChild(node: Node, child: T): T
Link copied to clipboard
open fun replaceChildren(vararg nodes: Any)

Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.

Link copied to clipboard