Skip to main content
Go to Latest
namespace Protocol.DOM
import { Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { DOM } = Protocol;

This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.Note that iframe owner elements will return corresponding document elements as their child nodes.

Interfaces

Fired when Element's attribute is modified.

Fired when Element's attribute is removed.

Backend node with a friendly name.

Box model.

Mirrors DOMCharacterDataModified event.

Fired when Container's child node count has changed.

Mirrors DOMNodeInserted event.

Mirrors DOMNodeRemoved event.

Called when distribution is changed.

Fired when Element's inline style is modified via a CSS property modification.

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

Called when a pseudo element is added to an element.

Called when a pseudo element is removed from an element.

Rectangle.

A structure holding an RGBA color.

Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.

Called when shadow root is popped from the element.

Called when shadow root is pushed into the element.

CSS Shape Outside details.

Type Aliases

Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.

Document compatibility mode.

Unique DOM node identifier.

Pseudo element type.

An array of quad vertices, x immediately followed by y for each point, points clock-wise.

Shadow root type.