pl.wendigo.chrome.api.dom / Node

Node

data class Node (source)

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

Link
DOM#Node type documentation.

Constructors

<init>

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)

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

Properties

attributes

val attributes: List<String>?

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

backendNodeId

val backendNodeId: BackendNodeId

The BackendNodeId for this node.

baseURL

val baseURL: String?

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

childNodeCount

val childNodeCount: Int?

Child count for Container nodes.

children

val children: List<Node>?

Child nodes of this node when requested with children.

contentDocument

val contentDocument: Node?

Content document for frame owner elements.

distributedNodes

val distributedNodes: List<BackendNode>?

Distributed nodes for given insertion point.

documentURL

val documentURL: String?

Document URL that Document or FrameOwner node points to.

frameId

val frameId: FrameId?

Frame ID for frame owner elements.

importedDocument

val importedDocument: Node?

Import document for the HTMLImport links.

internalSubset

val internalSubset: String?

DocumentType's internalSubset.

isSVG

val isSVG: Boolean?

Whether the node is SVG.

localName

val localName: String

Node's localName.

name

val name: String?

Attr's name.

nodeId

val nodeId: 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.

nodeName

val nodeName: String

Node's nodeName.

nodeType

val nodeType: Int

Node's nodeType.

nodeValue

val nodeValue: String

Node's nodeValue.

parentId

val parentId: NodeId?

The id of the parent node if any.

pseudoElements

val pseudoElements: List<Node>?

Pseudo elements associated with this node.

pseudoType

val pseudoType: PseudoType?

Pseudo element type for this node.

publicId

val publicId: String?

DocumentType's publicId.

shadowRoots

val shadowRoots: List<Node>?

Shadow root list for given element host.

shadowRootType

val shadowRootType: ShadowRootType?

Shadow root type.

systemId

val systemId: String?

DocumentType's systemId.

templateContent

val templateContent: Node?

Content document fragment for template elements.

value

val value: String?

Attr's value.

xmlVersion

val xmlVersion: String?

Document's XML version in case of XML documents.