DOM.Node

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

{
  "id": "Node",
  "type": "object",
  "properties": [
    {
      "name": "nodeId",
      "$ref": "NodeId",
      "description": "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."
    },
    {
      "name": "parentId",
      "$ref": "NodeId",
      "optional": true,
      "description": "The id of the parent node if any.",
      "experimental": true
    },
    {
      "name": "backendNodeId",
      "$ref": "BackendNodeId",
      "description": "The BackendNodeId for this node.",
      "experimental": true
    },
    {
      "name": "nodeType",
      "type": "integer",
      "description": "Node's nodeType."
    },
    {
      "name": "nodeName",
      "type": "string",
      "description": "Node's nodeName."
    },
    {
      "name": "localName",
      "type": "string",
      "description": "Node's localName."
    },
    {
      "name": "nodeValue",
      "type": "string",
      "description": "Node's nodeValue."
    },
    {
      "name": "childNodeCount",
      "type": "integer",
      "optional": true,
      "description": "Child count for Container nodes."
    },
    {
      "name": "children",
      "type": "array",
      "optional": true,
      "items": {
        "$ref": "Node"
      },
      "description": "Child nodes of this node when requested with children."
    },
    {
      "name": "attributes",
      "type": "array",
      "optional": true,
      "items": {
        "type": "string"
      },
      "description": "Attributes of the Element node in the form of flat array [name1, value1, name2, value2]."
    },
    {
      "name": "documentURL",
      "type": "string",
      "optional": true,
      "description": "Document URL that Document or FrameOwner node points to."
    },
    {
      "name": "baseURL",
      "type": "string",
      "optional": true,
      "description": "Base URL that Document or FrameOwner node uses for URL completion.",
      "experimental": true
    },
    {
      "name": "publicId",
      "type": "string",
      "optional": true,
      "description": "DocumentType's publicId."
    },
    {
      "name": "systemId",
      "type": "string",
      "optional": true,
      "description": "DocumentType's systemId."
    },
    {
      "name": "internalSubset",
      "type": "string",
      "optional": true,
      "description": "DocumentType's internalSubset."
    },
    {
      "name": "xmlVersion",
      "type": "string",
      "optional": true,
      "description": "Document's XML version in case of XML documents."
    },
    {
      "name": "name",
      "type": "string",
      "optional": true,
      "description": "Attr's name."
    },
    {
      "name": "value",
      "type": "string",
      "optional": true,
      "description": "Attr's value."
    },
    {
      "name": "pseudoType",
      "$ref": "PseudoType",
      "optional": true,
      "description": "Pseudo element type for this node."
    },
    {
      "name": "shadowRootType",
      "$ref": "ShadowRootType",
      "optional": true,
      "description": "Shadow root type."
    },
    {
      "name": "frameId",
      "$ref": "Page.FrameId",
      "optional": true,
      "description": "Frame ID for frame owner elements.",
      "experimental": true
    },
    {
      "name": "contentDocument",
      "$ref": "Node",
      "optional": true,
      "description": "Content document for frame owner elements."
    },
    {
      "name": "shadowRoots",
      "type": "array",
      "optional": true,
      "items": {
        "$ref": "Node"
      },
      "description": "Shadow root list for given element host.",
      "experimental": true
    },
    {
      "name": "templateContent",
      "$ref": "Node",
      "optional": true,
      "description": "Content document fragment for template elements.",
      "experimental": true
    },
    {
      "name": "pseudoElements",
      "type": "array",
      "items": {
        "$ref": "Node"
      },
      "optional": true,
      "description": "Pseudo elements associated with this node.",
      "experimental": true
    },
    {
      "name": "importedDocument",
      "$ref": "Node",
      "optional": true,
      "description": "Import document for the HTMLImport links."
    },
    {
      "name": "distributedNodes",
      "type": "array",
      "items": {
        "$ref": "BackendNode"
      },
      "optional": true,
      "description": "Distributed nodes for given insertion point.",
      "experimental": true
    },
    {
      "name": "isSVG",
      "type": "boolean",
      "optional": true,
      "description": "Whether the node is SVG.",
      "experimental": true
    }
  ],
  "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
}