CDATASection

open external class CDATASection : Text(source)

Exposes the JavaScript CDATASection to Kotlin

Since Kotlin

1.1
open external class CDATASection : Text, JsAny(source)

Exposes the JavaScript CDATASection to Kotlin

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor()
constructor()

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1
object Companion
Since Kotlin 1.8

Properties

Link copied to clipboard
open override val assignedSlot: HTMLSlotElement?
Since Kotlin 1.1
open override val assignedSlot: HTMLSlotElement?
Since Kotlin 1.8
Link copied to clipboard
open val baseURI: String
Since Kotlin 1.1
open val baseURI: String
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var data: String
Since Kotlin 1.1
open var data: String
Since Kotlin 1.8
Link copied to clipboard
open val firstChild: Node?
Since Kotlin 1.1
open val firstChild: Node?
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard

Gets a value indicating whether this node is an Element.

Since Kotlin 1.1

Gets a value indicating whether this node is an Element.

Since Kotlin 1.4

Gets a value indicating whether this node is an Element.

Since Kotlin 1.8
Link copied to clipboard

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

Since Kotlin 1.1

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

Since Kotlin 1.4

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

Since Kotlin 1.8
Link copied to clipboard
open val lastChild: Node?
Since Kotlin 1.1
open val lastChild: Node?
Since Kotlin 1.8
Link copied to clipboard
open val length: Int
Since Kotlin 1.1
open val length: Int
Since Kotlin 1.8
Link copied to clipboard
open override val nextElementSibling: Element?
Since Kotlin 1.1
open override val nextElementSibling: Element?
Since Kotlin 1.8
Link copied to clipboard
open val nextSibling: Node?
Since Kotlin 1.1
open val nextSibling: Node?
Since Kotlin 1.8
Link copied to clipboard
open val nodeName: String
Since Kotlin 1.1
open val nodeName: String
Since Kotlin 1.8
Link copied to clipboard
open val nodeType: Short
Since Kotlin 1.1
open val nodeType: Short
Since Kotlin 1.8
Link copied to clipboard
open var nodeValue: String?
Since Kotlin 1.1
open var nodeValue: String?
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open val parentNode: Node?
Since Kotlin 1.1
open val parentNode: Node?
Since Kotlin 1.8
Link copied to clipboard
open override val previousElementSibling: Element?
Since Kotlin 1.1
open override val previousElementSibling: Element?
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var textContent: String?
Since Kotlin 1.1
open var textContent: String?
Since Kotlin 1.8
Link copied to clipboard
open val wholeText: String
Since Kotlin 1.1
open val wholeText: String
Since Kotlin 1.8

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Since Kotlin 1.1
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
Since Kotlin 1.8
Link copied to clipboard
open override fun after(vararg nodes: dynamic)
Since Kotlin 1.1
open override fun after(vararg nodes: String)
open override fun after(vararg nodes: Node)
Since Kotlin 1.8
Link copied to clipboard
fun appendChild(node: Node): Node
Since Kotlin 1.1
fun appendChild(node: Node): Node
Since Kotlin 1.8
Link copied to clipboard
fun appendData(data: String)
Since Kotlin 1.1
fun appendData(data: String)
Since Kotlin 1.8
Link copied to clipboard
open override fun before(vararg nodes: dynamic)
Since Kotlin 1.1
open override fun before(vararg nodes: String)
open override fun before(vararg nodes: Node)
Since Kotlin 1.8
Link copied to clipboard
inline fun Node.clear()

Removes all the children from this node.

Since Kotlin 1.1
fun Node.clear()

Removes all the children from this node.

Since Kotlin 1.4
fun Node.clear()

Removes all the children from this node.

Since Kotlin 1.8
Link copied to clipboard
fun cloneNode(deep: Boolean = definedExternally): Node
Since Kotlin 1.1
fun cloneNode(deep: Boolean = definedExternally): Node
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun contains(other: Node?): Boolean
Since Kotlin 1.1
fun contains(other: Node?): Boolean
Since Kotlin 1.8
Link copied to clipboard
open override fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions): DOMPoint
Since Kotlin 1.1
open override fun convertPointFromNode(point: DOMPointInit, from: Document, options: ConvertCoordinateOptions): DOMPoint
open override fun convertPointFromNode(point: DOMPointInit, from: Element, options: ConvertCoordinateOptions): DOMPoint
open override fun convertPointFromNode(point: DOMPointInit, from: Text, options: ConvertCoordinateOptions): DOMPoint
Since Kotlin 1.8
Link copied to clipboard
open override fun convertQuadFromNode(quad: dynamic, from: dynamic, options: ConvertCoordinateOptions): DOMQuad
Since Kotlin 1.1
open override fun convertQuadFromNode(quad: JsAny?, from: Document, options: ConvertCoordinateOptions): DOMQuad
open override fun convertQuadFromNode(quad: JsAny?, from: Element, options: ConvertCoordinateOptions): DOMQuad
open override fun convertQuadFromNode(quad: JsAny?, from: Text, options: ConvertCoordinateOptions): DOMQuad
Since Kotlin 1.8
Link copied to clipboard
open override fun convertRectFromNode(rect: DOMRectReadOnly, from: dynamic, options: ConvertCoordinateOptions): DOMQuad
Since Kotlin 1.1
open override fun convertRectFromNode(rect: DOMRectReadOnly, from: Text, options: ConvertCoordinateOptions): DOMQuad
Since Kotlin 1.8
Link copied to clipboard
fun deleteData(offset: Int, count: Int)
Since Kotlin 1.1
fun deleteData(offset: Int, count: Int)
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open override fun getBoxQuads(options: BoxQuadOptions): Array<DOMQuad>
Since Kotlin 1.1
open override fun getBoxQuads(options: BoxQuadOptions): JsArray<DOMQuad>
Since Kotlin 1.8
Link copied to clipboard
fun getRootNode(options: GetRootNodeOptions = definedExternally): Node
Since Kotlin 1.1
fun getRootNode(options: GetRootNodeOptions = definedExternally): Node
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun insertBefore(node: Node, child: Node?): Node
Since Kotlin 1.1
fun insertBefore(node: Node, child: Node?): Node
Since Kotlin 1.8
Link copied to clipboard
fun insertData(offset: Int, data: String)
Since Kotlin 1.1
fun insertData(offset: Int, data: String)
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun isEqualNode(otherNode: Node?): Boolean
Since Kotlin 1.1
fun isEqualNode(otherNode: Node?): Boolean
Since Kotlin 1.8
Link copied to clipboard
fun isSameNode(otherNode: Node?): Boolean
Since Kotlin 1.1
fun isSameNode(otherNode: Node?): Boolean
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
fun lookupPrefix(namespace: String?): String?
Since Kotlin 1.1
fun lookupPrefix(namespace: String?): String?
Since Kotlin 1.8
Link copied to clipboard
fun normalize()
Since Kotlin 1.1
fun normalize()
Since Kotlin 1.8
Link copied to clipboard
open override fun remove()
Since Kotlin 1.1
open override fun remove()
Since Kotlin 1.8
Link copied to clipboard
fun removeChild(child: Node): Node
Since Kotlin 1.1
fun removeChild(child: Node): Node
Since Kotlin 1.8
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Since Kotlin 1.1
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Since Kotlin 1.8
Link copied to clipboard
fun replaceChild(node: Node, child: Node): Node
Since Kotlin 1.1
fun replaceChild(node: Node, child: Node): Node
Since Kotlin 1.8
Link copied to clipboard
fun replaceData(offset: Int, count: Int, data: String)
Since Kotlin 1.1
fun replaceData(offset: Int, count: Int, data: String)
Since Kotlin 1.8
Link copied to clipboard
open override fun replaceWith(vararg nodes: dynamic)
Since Kotlin 1.1
open override fun replaceWith(vararg nodes: String)
open override fun replaceWith(vararg nodes: Node)
Since Kotlin 1.8
Link copied to clipboard
fun splitText(offset: Int): Text
Since Kotlin 1.1
fun splitText(offset: Int): Text
Since Kotlin 1.8
Link copied to clipboard
fun substringData(offset: Int, count: Int): String
Since Kotlin 1.1
fun substringData(offset: Int, count: Int): String
Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8