Comment

open external class Comment(data: String = definedExternally) : CharacterData

Exposes the JavaScript Comment to Kotlin

Constructors

Link copied to clipboard
fun Comment(data: String = definedExternally)

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
open override fun after(vararg nodes: dynamic)
Link copied to clipboard
fun appendChild(node: Node): Node
Link copied to clipboard
fun appendData(data: String)
Link copied to clipboard
open override fun before(vararg nodes: dynamic)
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 deleteData(offset: Int, count: Int)
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 insertData(offset: Int, data: String)
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
open override fun remove()
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
Link copied to clipboard
fun replaceData(    offset: Int,     count: Int,     data: String)
Link copied to clipboard
open override fun replaceWith(vararg nodes: dynamic)
Link copied to clipboard
fun substringData(offset: Int, count: Int): String

Properties

Link copied to clipboard
open val baseURI: String
Link copied to clipboard
Link copied to clipboard
open var data: String
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 length: Int
Link copied to clipboard
open override val nextElementSibling: Element?
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
open override val previousElementSibling: Element?
Link copied to clipboard
Link copied to clipboard
open var textContent: String?

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.