Node

abstract external class Node : EventTarget

Exposes the JavaScript Node to Kotlin

Constructors

Link copied to clipboard
fun Node()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun appendChild(node: Node): Node
Link copied to clipboard
fun cloneNode(deep: Boolean = definedExternally): Node
Link copied to clipboard
Link copied to clipboard
fun contains(other: Node?): Boolean
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
fun getRootNode(options: GetRootNodeOptions = definedExternally): Node
Link copied to clipboard
fun hasChildNodes(): Boolean
Link copied to clipboard
fun insertBefore(node: Node, child: Node?): Node
Link copied to clipboard
fun isDefaultNamespace(namespace: String?): Boolean
Link copied to clipboard
fun isEqualNode(otherNode: Node?): Boolean
Link copied to clipboard
fun isSameNode(otherNode: Node?): Boolean
Link copied to clipboard
Link copied to clipboard
fun lookupPrefix(namespace: String?): String?
Link copied to clipboard
fun normalize()
Link copied to clipboard
fun removeChild(child: Node): Node
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun replaceChild(node: Node, child: Node): Node

Properties

Link copied to clipboard
open val baseURI: String
Link copied to clipboard
Link copied to clipboard
open val firstChild: Node?
Link copied to clipboard
open val isConnected: Boolean
Link copied to clipboard
open val lastChild: Node?
Link copied to clipboard
open val nextSibling: Node?
Link copied to clipboard
open val nodeName: String
Link copied to clipboard
open val nodeType: Short
Link copied to clipboard
open var nodeValue: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val parentNode: Node?
Link copied to clipboard
Link copied to clipboard
open var textContent: String?

Inheritors

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

Extensions

Link copied to clipboard
inline fun Node.clear()
fun Node.clear()

Removes all the children from this node.

Link copied to clipboard
val Node.isElement: Boolean
val Node.isElement: Boolean

Gets a value indicating whether this node is an Element.

Link copied to clipboard
val Node.isText: Boolean
val Node.isText: Boolean

Gets a value indicating whether this node is a TEXT_NODE or a CDATA_SECTION_NODE.