Node

@Serializable
data class Node(val nodeId: Int, val parentId: Int? = null, val backendNodeId: Int, val nodeType: Int, val nodeName: String, val localName: String, val nodeValue: String, val childNodeCount: Int? = null, val children: List<DOM.Node>? = null, val attributes: List<String>? = null, val documentURL: String? = null, val baseURL: String? = null, val publicId: String? = null, val systemId: String? = null, val internalSubset: String? = null, val xmlVersion: String? = null, val name: String? = null, val value: String? = null, val pseudoType: DOM.PseudoType? = null, val pseudoIdentifier: String? = null, val shadowRootType: DOM.ShadowRootType? = null, val frameId: String? = null, val contentDocument: DOM.Node? = null, val shadowRoots: List<DOM.Node>? = null, val templateContent: DOM.Node? = null, val pseudoElements: List<DOM.Node>? = null, val importedDocument: DOM.Node? = null, val distributedNodes: List<DOM.BackendNode>? = null, val isSVG: Boolean? = null, val compatibilityMode: DOM.CompatibilityMode? = null, val assignedSlot: DOM.BackendNode? = null, val isScrollable: Boolean? = null)

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

Constructors

Link copied to clipboard
constructor(nodeId: Int, parentId: Int? = null, backendNodeId: Int, nodeType: Int, nodeName: String, localName: String, nodeValue: String, childNodeCount: Int? = null, children: List<DOM.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: DOM.PseudoType? = null, pseudoIdentifier: String? = null, shadowRootType: DOM.ShadowRootType? = null, frameId: String? = null, contentDocument: DOM.Node? = null, shadowRoots: List<DOM.Node>? = null, templateContent: DOM.Node? = null, pseudoElements: List<DOM.Node>? = null, importedDocument: DOM.Node? = null, distributedNodes: List<DOM.BackendNode>? = null, isSVG: Boolean? = null, compatibilityMode: DOM.CompatibilityMode? = null, assignedSlot: DOM.BackendNode? = null, isScrollable: Boolean? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val attributes: List<String>? = null

Attributes of the Element node in the form of flat array [name1, value1, name2, value2].

Link copied to clipboard

The BackendNodeId for this node.

Link copied to clipboard
val baseURL: String? = null

Base URL that Document or FrameOwner node uses for URL completion.

Link copied to clipboard
val childNodeCount: Int? = null

Child count for Container nodes.

Link copied to clipboard
val children: List<DOM.Node>? = null

Child nodes of this node when requested with children.

Link copied to clipboard
Link copied to clipboard

Content document for frame owner elements.

Link copied to clipboard

Distributed nodes for given insertion point.

Link copied to clipboard
val documentURL: String? = null

Document URL that Document or FrameOwner node points to.

Link copied to clipboard
val frameId: String? = null

Frame ID for frame owner elements.

Link copied to clipboard

Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.

Link copied to clipboard
val internalSubset: String? = null

DocumentType's internalSubset.

Link copied to clipboard
val isScrollable: Boolean? = null
Link copied to clipboard
val isSVG: Boolean? = null

Whether the node is SVG.

Link copied to clipboard

Node's localName.

Link copied to clipboard
val name: String? = null

Attr's name.

Link copied to clipboard
val nodeId: Int

Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.

Link copied to clipboard

Node's nodeName.

Link copied to clipboard

Node's nodeType.

Link copied to clipboard

Node's nodeValue.

Link copied to clipboard
val parentId: Int? = null

The id of the parent node if any.

Link copied to clipboard

Pseudo elements associated with this node.

Link copied to clipboard

Pseudo element identifier for this node. Only present if there is a valid pseudoType.

Link copied to clipboard

Pseudo element type for this node.

Link copied to clipboard
val publicId: String? = null

DocumentType's publicId.

Link copied to clipboard
val shadowRoots: List<DOM.Node>? = null

Shadow root list for given element host.

Link copied to clipboard

Shadow root type.

Link copied to clipboard
val systemId: String? = null

DocumentType's systemId.

Link copied to clipboard

Content document fragment for template elements.

Link copied to clipboard
val value: String? = null

Attr's value.

Link copied to clipboard
val xmlVersion: String? = null

Document's XML version in case of XML documents.