
jsMain.web.dom.Node.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package web.dom
import web.events.EventTarget
import web.html.HTMLElement
sealed external class Node :
EventTarget {
/** Returns node's node document's document base URL. */
val baseURI: String
/** Returns the children. */
val childNodes: NodeListOf
/** Returns the first child. */
val firstChild: Node /* ChildNode */?
/** Returns true if node is connected and false otherwise. */
val isConnected: Boolean
/** Returns the last child. */
val lastChild: Node /* ChildNode */?
/** Returns the next sibling. */
val nextSibling: Node /* ChildNode */?
/** Returns a string appropriate for the type of node. */
val nodeName: String
/** Returns the type of node. */
val nodeType: Short
var nodeValue: String?
/** Returns the node document. Returns null for documents. */
open val ownerDocument: Document?
/** Returns the parent element. */
val parentElement: HTMLElement?
/** Returns the parent. */
val parentNode: Node /* ParentNode */?
/** Returns the previous sibling. */
val previousSibling: Node /* ChildNode */?
var textContent: String?
fun appendChild(node: T): T
/** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
fun cloneNode(deep: Boolean = definedExternally): Node
/** Returns a bitmask indicating the position of other relative to node. */
fun compareDocumentPosition(other: Node): Number
/** Returns true if other is an inclusive descendant of node, and false otherwise. */
fun contains(other: Node?): Boolean
/** Returns node's root. */
fun getRootNode(options: GetRootNodeOptions = definedExternally): Node
/** Returns whether node has children. */
fun hasChildNodes(): Boolean
fun insertBefore(
node: T,
child: Node?,
): T
fun isDefaultNamespace(namespace: String?): Boolean
/** Returns whether node and otherNode have the same properties. */
fun isEqualNode(otherNode: Node?): Boolean
fun isSameNode(otherNode: Node?): Boolean
fun lookupNamespaceURI(prefix: String?): String?
fun lookupPrefix(namespace: String?): String?
/** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
fun normalize()
fun removeChild(child: T): T
fun replaceChild(
node: Node,
child: T,
): T
/** node is an element. */
val ELEMENT_NODE: Short
val ATTRIBUTE_NODE: Short
/** node is a Text node. */
val TEXT_NODE: Short
/** node is a CDATASection node. */
val CDATA_SECTION_NODE: Short
val ENTITY_REFERENCE_NODE: Short
val ENTITY_NODE: Short
/** node is a ProcessingInstruction node. */
val PROCESSING_INSTRUCTION_NODE: Short
/** node is a Comment node. */
val COMMENT_NODE: Short
/** node is a document. */
val DOCUMENT_NODE: Short
/** node is a doctype. */
val DOCUMENT_TYPE_NODE: Short
/** node is a DocumentFragment node. */
val DOCUMENT_FRAGMENT_NODE: Short
val NOTATION_NODE: Short
/** Set when node and other are not in the same tree. */
val DOCUMENT_POSITION_DISCONNECTED: Short
/** Set when other is preceding node. */
val DOCUMENT_POSITION_PRECEDING: Short
/** Set when other is following node. */
val DOCUMENT_POSITION_FOLLOWING: Short
/** Set when other is an ancestor of node. */
val DOCUMENT_POSITION_CONTAINS: Short
/** Set when other is a descendant of node. */
val DOCUMENT_POSITION_CONTAINED_BY: Short
val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: Short
companion object {
/** node is an element. */
val ELEMENT_NODE: Short
val ATTRIBUTE_NODE: Short
/** node is a Text node. */
val TEXT_NODE: Short
/** node is a CDATASection node. */
val CDATA_SECTION_NODE: Short
val ENTITY_REFERENCE_NODE: Short
val ENTITY_NODE: Short
/** node is a ProcessingInstruction node. */
val PROCESSING_INSTRUCTION_NODE: Short
/** node is a Comment node. */
val COMMENT_NODE: Short
/** node is a document. */
val DOCUMENT_NODE: Short
/** node is a doctype. */
val DOCUMENT_TYPE_NODE: Short
/** node is a DocumentFragment node. */
val DOCUMENT_FRAGMENT_NODE: Short
val NOTATION_NODE: Short
/** Set when node and other are not in the same tree. */
val DOCUMENT_POSITION_DISCONNECTED: Short
/** Set when other is preceding node. */
val DOCUMENT_POSITION_PRECEDING: Short
/** Set when other is following node. */
val DOCUMENT_POSITION_FOLLOWING: Short
/** Set when other is an ancestor of node. */
val DOCUMENT_POSITION_CONTAINS: Short
/** Set when other is a descendant of node. */
val DOCUMENT_POSITION_CONTAINED_BY: Short
val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: Short
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy