Node

JS
1.1
abstract class Node : EventTarget
(source)

Exposes the JavaScript Node to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Node to Kotlin

Node ( )

Properties

JS
1.1

baseURI

open val baseURI : String
JS
1.1

childNodes

open val childNodes : NodeList
JS
1.1

firstChild

open val firstChild : Node ?
JS
1.1

isConnected

open val isConnected : Boolean
JS
1.1

lastChild

open val lastChild : Node ?
JS
1.1

nextSibling

open val nextSibling : Node ?
JS
1.1

nodeName

open val nodeName : String
JS
1.1

nodeType

open val nodeType : Short
JS
1.1

nodeValue

open var nodeValue : String ?
JS
1.1

ownerDocument

open val ownerDocument : Document ?
JS
1.1

parentElement

open val parentElement : Element ?
JS
1.1

parentNode

open val parentNode : Node ?
JS
1.1

previousSibling

open val previousSibling : Node ?
JS
1.1

textContent

open var textContent : String ?

Functions

JS
1.1

appendChild

fun appendChild ( node : Node ) : Node
JS
1.1

cloneNode

fun cloneNode ( deep : Boolean = definedExternally ) : Node
JS
1.1

compareDocumentPosition

fun compareDocumentPosition ( other : Node ) : Short
JS
1.1

contains

fun contains ( other : Node ? ) : Boolean
JS
1.1

getRootNode

fun getRootNode (
options : GetRootNodeOptions = definedExternally
) : Node
JS
1.1

hasChildNodes

fun hasChildNodes ( ) : Boolean
JS
1.1

insertBefore

fun insertBefore ( node : Node , child : Node ? ) : Node
JS
1.1

isDefaultNamespace

fun isDefaultNamespace ( namespace : String ? ) : Boolean
JS
1.1

isEqualNode

fun isEqualNode ( otherNode : Node ? ) : Boolean
JS
1.1

isSameNode

fun isSameNode ( otherNode : Node ? ) : Boolean
JS
1.1

lookupNamespaceURI

fun lookupNamespaceURI ( prefix : String ? ) : String ?
JS
1.1

lookupPrefix

fun lookupPrefix ( namespace : String ? ) : String ?
JS
1.1

normalize

fun normalize ( )
JS
1.1

removeChild

fun removeChild ( child : Node ) : Node
JS
1.1

replaceChild

fun replaceChild ( node : Node , child : Node ) : Node

Companion Object Properties

JS
1.1

ATTRIBUTE_NODE

val ATTRIBUTE_NODE : Short
JS
1.1

CDATA_SECTION_NODE

val CDATA_SECTION_NODE : Short
JS
1.1

COMMENT_NODE

val COMMENT_NODE : Short
JS
1.1

DOCUMENT_FRAGMENT_NODE

val DOCUMENT_FRAGMENT_NODE : Short
JS
1.1

DOCUMENT_NODE

val DOCUMENT_NODE : Short
JS
1.1

DOCUMENT_POSITION_CONTAINED_BY

val DOCUMENT_POSITION_CONTAINED_BY : Short
JS
1.1

DOCUMENT_POSITION_CONTAINS

val DOCUMENT_POSITION_CONTAINS : Short
JS
1.1

DOCUMENT_POSITION_DISCONNECTED

val DOCUMENT_POSITION_DISCONNECTED : Short
JS
1.1

DOCUMENT_POSITION_FOLLOWING

val DOCUMENT_POSITION_FOLLOWING : Short
JS
1.1

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Short
JS
1.1

DOCUMENT_POSITION_PRECEDING

val DOCUMENT_POSITION_PRECEDING : Short
JS
1.1

DOCUMENT_TYPE_NODE

val DOCUMENT_TYPE_NODE : Short
JS
1.1

ELEMENT_NODE

val ELEMENT_NODE : Short
JS
1.1

ENTITY_NODE

val ENTITY_NODE : Short
JS
1.1

ENTITY_REFERENCE_NODE

val ENTITY_REFERENCE_NODE : Short
JS
1.1

NOTATION_NODE

val NOTATION_NODE : Short
JS
1.1

PROCESSING_INSTRUCTION_NODE

val PROCESSING_INSTRUCTION_NODE : Short
JS
1.1

TEXT_NODE

val TEXT_NODE : Short

Extension Properties

JS
1.1

isElement

Gets a value indicating whether this node is an Element .

val Node . isElement : Boolean
JS
1.4

isElement

Gets a value indicating whether this node is an Element .

val Node . isElement : Boolean
JS
1.1

isText

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

val Node . isText : Boolean
JS
1.4

isText

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

val Node . isText : Boolean

Extension Functions

JS
1.1

clear

Removes all the children from this node.

fun Node . clear ( )
JS
1.4

clear

Removes all the children from this node.

fun Node . clear ( )

Inheritors

JS
1.1

Attr

Exposes the JavaScript Attr to Kotlin

abstract class Attr : Node
JS
1.1

CharacterData

Exposes the JavaScript CharacterData to Kotlin

abstract class CharacterData :
Node ,
NonDocumentTypeChildNode ,
ChildNode
JS
1.1

DocumentFragment

Exposes the JavaScript DocumentFragment to Kotlin

open class DocumentFragment :
Node ,
NonElementParentNode ,
ParentNode
JS
1.1

DocumentType

Exposes the JavaScript DocumentType to Kotlin

abstract class DocumentType : Node , ChildNode