Node

data class Node(nodeId: NodeId, parentId: NodeId?, backendNodeId: BackendNodeId, nodeType: Int, nodeName: String, localName: String, nodeValue: String, childNodeCount: Int?, children: List<Node>?, attributes: List<String>?, documentURL: String?, baseURL: String?, publicId: String?, systemId: String?, internalSubset: String?, xmlVersion: String?, name: String?, value: String?, pseudoType: PseudoType?, shadowRootType: ShadowRootType?, frameId: FrameId?, contentDocument: Node?, shadowRoots: List<Node>?, templateContent: Node?, pseudoElements: List<Node>?, importedDocument: Node?, distributedNodes: List<BackendNode>?, isSVG: Boolean?)

DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.

Constructors

Node
Link copied to clipboard
fun Node(nodeId: NodeId, parentId: NodeId? = null, backendNodeId: BackendNodeId, nodeType: Int, nodeName: String, localName: String, nodeValue: String, childNodeCount: Int? = null, children: List<Node>? = null, attributes: List<String>? = null, documentURL: String? = null, baseURL: String? = null, publicId: String? = null, systemId: String? = null, internalSubset: String? = null, xmlVersion: String? = null, name: String? = null, value: String? = null, pseudoType: PseudoType? = null, shadowRootType: ShadowRootType? = null, frameId: FrameId? = null, contentDocument: Node? = null, shadowRoots: List<Node>? = null, templateContent: Node? = null, pseudoElements: List<Node>? = null, importedDocument: Node? = null, distributedNodes: List<BackendNode>? = null, isSVG: Boolean? = null)

Properties

attributes
Link copied to clipboard
val attributes: List<String>? = null
Attributes of the Element node in the form of flat array [name1, value1, name2, value2].
backendNodeId
Link copied to clipboard
val backendNodeId: BackendNodeId
The BackendNodeId for this node.
baseURL
Link copied to clipboard
val baseURL: String? = null
Base URL that Document or FrameOwner node uses for URL completion.
childNodeCount
Link copied to clipboard
val childNodeCount: Int? = null
Child count for Container nodes.
children
Link copied to clipboard
val children: List<Node>? = null
Child nodes of this node when requested with children.
contentDocument
Link copied to clipboard
val contentDocument: Node? = null
Content document for frame owner elements.
distributedNodes
Link copied to clipboard
val distributedNodes: List<BackendNode>? = null
Distributed nodes for given insertion point.
documentURL
Link copied to clipboard
val documentURL: String? = null
Document URL that Document or FrameOwner node points to.
frameId
Link copied to clipboard
val frameId: FrameId? = null
Frame ID for frame owner elements.
importedDocument
Link copied to clipboard
val importedDocument: Node? = null
Import document for the HTMLImport links.
internalSubset
Link copied to clipboard
val internalSubset: String? = null
DocumentType's internalSubset.
isSVG
Link copied to clipboard
val isSVG: Boolean? = null
Whether the node is SVG.
localName
Link copied to clipboard
val localName: String
Node's localName.
name
Link copied to clipboard
val name: String? = null
Attr's name.
nodeId
Link copied to clipboard
val nodeId: NodeId
Node identifier that is passed into the rest of the DOM messages as the nodeId.
nodeName
Link copied to clipboard
val nodeName: String
Node's nodeName.
nodeType
Link copied to clipboard
val nodeType: Int
Node's nodeType.
nodeValue
Link copied to clipboard
val nodeValue: String
Node's nodeValue.
parentId
Link copied to clipboard
val parentId: NodeId? = null
The id of the parent node if any.
pseudoElements
Link copied to clipboard
val pseudoElements: List<Node>? = null
Pseudo elements associated with this node.
pseudoType
Link copied to clipboard
val pseudoType: PseudoType? = null
Pseudo element type for this node.
publicId
Link copied to clipboard
val publicId: String? = null
DocumentType's publicId.
shadowRoots
Link copied to clipboard
val shadowRoots: List<Node>? = null
Shadow root list for given element host.
shadowRootType
Link copied to clipboard
val shadowRootType: ShadowRootType? = null
Shadow root type.
systemId
Link copied to clipboard
val systemId: String? = null
DocumentType's systemId.
templateContent
Link copied to clipboard
val templateContent: Node? = null
Content document fragment for template elements.
value
Link copied to clipboard
val value: String? = null
Attr's value.
xmlVersion
Link copied to clipboard
val xmlVersion: String? = null
Document's XML version in case of XML documents.

Sources

jvm source
Link copied to clipboard