Comment

open external class Comment : CharacterData (source)

Platform and version requirements: JS

Exposes the JavaScript Comment to Kotlin

Constructors

<init>

Comment(data: String = definedExternally)

Exposes the JavaScript Comment to Kotlin

Properties

nextElementSibling

open val nextElementSibling: Element?

previousElementSibling

open val previousElementSibling: Element?

Inherited Properties

data

open var data: String

length

open val length: Int

Functions

after

open fun after(vararg nodes: dynamic)

before

open fun before(vararg nodes: dynamic)

remove

open fun remove()

replaceWith

open fun replaceWith(vararg nodes: dynamic)

Inherited Functions

appendData

fun appendData(data: String)

deleteData

fun deleteData(offset: Int, count: Int)

insertData

fun insertData(offset: Int, data: String)

replaceData

fun replaceData(offset: Int, count: Int, data: String)

substringData

fun substringData(offset: Int, count: Int): String

Extension Properties

isElement

val Node.isElement: Boolean

Gets a value indicating whether this node is an Element.

isText

val Node.isText: Boolean

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

Extension Functions

clear

fun Node.clear()

Removes all the children from this node.