import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { Node } = Protocol.DOM;
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.
Properties
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.
The id of the parent node if any.
The BackendNodeId for this node.
Node
's nodeType.
Child count for Container
nodes.
Child nodes of this node when requested with children.
Attributes of the Element
node in the form of flat array [name1, value1, name2, value2]
.
Pseudo element type for this node.
Shadow root type.
Frame ID for frame owner elements.
Content document for frame owner elements.
Shadow root list for given element host.
Content document fragment for template elements.
Pseudo elements associated with this node.
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.
Distributed nodes for given insertion point.