Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.DOMSnapshot.NodeTreeSnapshot
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { NodeTreeSnapshot } = default.DOMSnapshot;

Table containing nodes.

Properties

optional
parentIndex: integer[]

Parent node index.

optional
nodeType: integer[]

Node's nodeType.

optional
nodeName: StringIndex[]

Node's nodeName.

optional
nodeValue: StringIndex[]

Node's nodeValue.

optional
backendNodeId: DOM.BackendNodeId[]

Node's id, corresponds to DOM.Node.backendNodeId.

optional
attributes: ArrayOfStrings[]

Attributes of an Element node. Flatten name, value pairs.

optional
textValue: RareStringData

Only set for textarea elements, contains the text value.

optional
inputValue: RareStringData

Only set for input elements, contains the input's associated text value.

optional
inputChecked: RareBooleanData

Only set for radio and checkbox input elements, indicates if the element has been checked

optional
optionSelected: RareBooleanData

Only set for option elements, indicates if the element has been selected

optional
contentDocumentIndex: RareIntegerData

The index of the document in the list of the snapshot documents.

optional
pseudoType: RareStringData

Type of a pseudo element node.

optional
isClickable: RareBooleanData

Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.

optional
currentSourceURL: RareStringData

The selected url for nodes with a srcset attribute.

optional
originURL: RareStringData

The url of the script (if any) that generates this node.