chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.dom / Node

Node

data class Node

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

Constructors

<init>

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

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

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

val attributes: List<String>?

backendNodeId

The BackendNodeId for this node.

val backendNodeId: BackendNodeId

baseURL

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

val baseURL: String?

childNodeCount

Child count for Container nodes.

val childNodeCount: Int?

children

Child nodes of this node when requested with children.

val children: List<Node>?

contentDocument

Content document for frame owner elements.

val contentDocument: Node?

distributedNodes

Distributed nodes for given insertion point.

val distributedNodes: List<BackendNode>?

documentURL

Document URL that Document or FrameOwner node points to.

val documentURL: String?

frameId

Frame ID for frame owner elements.

val frameId: FrameId?

importedDocument

Import document for the HTMLImport links.

val importedDocument: Node?

internalSubset

DocumentType's internalSubset.

val internalSubset: String?

isSVG

Whether the node is SVG.

val isSVG: Boolean?

localName

Node's localName.

val localName: String

name

Attr's name.

val name: String?

nodeId

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.

val nodeId: NodeId

nodeName

Node's nodeName.

val nodeName: String

nodeType

Node's nodeType.

val nodeType: Int

nodeValue

Node's nodeValue.

val nodeValue: String

parentId

The id of the parent node if any.

val parentId: NodeId?

pseudoElements

Pseudo elements associated with this node.

val pseudoElements: List<Node>?

pseudoType

Pseudo element type for this node.

val pseudoType: PseudoType?

publicId

DocumentType's publicId.

val publicId: String?

shadowRoots

Shadow root list for given element host.

val shadowRoots: List<Node>?

shadowRootType

Shadow root type.

val shadowRootType: ShadowRootType?

systemId

DocumentType's systemId.

val systemId: String?

templateContent

Content document fragment for template elements.

val templateContent: Node?

value

Attr's value.

val value: String?

xmlVersion

Document's XML version in case of XML documents.

val xmlVersion: String?