mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
62ac167339
* roll Chromium to version 86, r800071 * roll Chrome DevTools protocol version to 0.0.799653 * fix HTTPRequest.continue after * CDP: accept post data in the binary form in Fetch.continueRequest. https://chromium-review.googlesource.com/c/chromium/src/+/2315239 * update new-docs
9.6 KiB
9.6 KiB
Home > puppeteer > Protocol > DOM
Protocol.DOM namespace
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.
Signature:
export namespace DOM
Interfaces
Type Aliases
Type Alias | Description |
---|---|
BackendNodeId | Unique DOM node identifier used to reference a node that may not have been pushed to the front-end. |
NodeId | Unique DOM node identifier. |
PseudoType | Pseudo element type. |
Quad | An array of quad vertices, x immediately followed by y for each point, points clock-wise. |
ShadowRootType | Shadow root type. |