DOM

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.

Common API Experimental API Not implemented

RemoteDebug Core

Chrome (CDP 1.2)

Edge

Node (V8)

Safari iOS 10.0

disable disable disable disable
enable enable enable enable
getAttributes getAttributes getAttributes getAttributes getAttributes
getDocument getDocument getDocument getDocument getDocument
getOuterHTML getOuterHTML getOuterHTML getOuterHTML
hideHighlight hideHighlight hideHighlight hideHighlight hideHighlight
highlightNode highlightNode highlightNode highlightNode highlightNode
highlightRect highlightRect highlightRect highlightRect
moveTo moveTo moveTo moveTo
querySelector querySelector querySelector querySelector
querySelectorAll querySelectorAll querySelectorAll querySelectorAll
removeAttribute removeAttribute removeAttribute removeAttribute
removeNode removeNode removeNode removeNode
requestChildNodes requestChildNodes requestChildNodes requestChildNodes requestChildNodes
requestNode requestNode requestNode requestNode
resolveNode resolveNode resolveNode resolveNode
setAttributeValue setAttributeValue setAttributeValue setAttributeValue
setAttributesAsText setAttributesAsText setAttributesAsText setAttributesAsText
setNodeName setNodeName setNodeName setNodeName
setNodeValue setNodeValue setNodeValue setNodeValue
setOuterHTML setOuterHTML setOuterHTML setOuterHTML
collectClassNamesFromSubtree collectClassNamesFromSubtree
copyTo copyTo
discardSearchResults discardSearchResults discardSearchResults
focus focus focus
getBoxModel getBoxModel
getFlattenedDocument getFlattenedDocument
getNodeForLocation getNodeForLocation
getRelayoutBoundary getRelayoutBoundary
getSearchResults getSearchResults getSearchResults
markUndoableState markUndoableState markUndoableState
performSearch performSearch performSearch
pushNodeByPathToFrontend pushNodeByPathToFrontend pushNodeByPathToFrontend pushNodeByPathToFrontend
pushNodesByBackendIdsToFrontend pushNodesByBackendIdsToFrontend pushNodesByBackendIdsToFrontend
redo redo redo
setFileInputFiles setFileInputFiles
setInspectedNode setInspectedNode
undo undo undo
getHighlightObjectForTest
highlightFrame highlightFrame
highlightQuad highlightQuad
setInspectMode
getAccessibilityPropertiesForNode getAccessibilityPropertiesForNode
getEventListenersForNode getEventListenersForNode
highlightSelector highlightSelector
pushNodeByBackendIdToFrontend pushNodeByBackendIdToFrontend
releaseBackendNodeIds releaseBackendNodeIds
setInspectModeEnabled setInspectModeEnabled

Events

RemoteDebug Core

Chrome (CDP 1.2)

Edge

Node (V8)

Safari iOS 10.0

attributeModified attributeModified attributeModified attributeModified attributeModified
attributeRemoved attributeRemoved attributeRemoved attributeRemoved attributeRemoved
characterDataModified characterDataModified characterDataModified characterDataModified characterDataModified
childNodeCountUpdated childNodeCountUpdated childNodeCountUpdated childNodeCountUpdated childNodeCountUpdated
childNodeInserted childNodeInserted childNodeInserted childNodeInserted childNodeInserted
childNodeRemoved childNodeRemoved childNodeRemoved childNodeRemoved childNodeRemoved
documentUpdated documentUpdated documentUpdated documentUpdated documentUpdated
setChildNodes setChildNodes setChildNodes setChildNodes setChildNodes
distributedNodesUpdated distributedNodesUpdated distributedNodesUpdated
inlineStyleInvalidated inlineStyleInvalidated inlineStyleInvalidated inlineStyleInvalidated
pseudoElementAdded pseudoElementAdded pseudoElementAdded pseudoElementAdded
pseudoElementRemoved pseudoElementRemoved pseudoElementRemoved pseudoElementRemoved
shadowRootPopped shadowRootPopped shadowRootPopped shadowRootPopped
shadowRootPushed shadowRootPushed shadowRootPushed shadowRootPushed
inspectNodeRequested inspectNodeRequested
nodeHighlightRequested

Types

RemoteDebug Core

Chrome (CDP 1.2)

Edge

Node (V8)

Safari iOS 10.0

HighlightConfig HighlightConfig HighlightConfig HighlightConfig
Node Node Node Node Node
NodeId NodeId NodeId NodeId NodeId
PseudoType PseudoType PseudoType PseudoType PseudoType
RGBA RGBA RGBA RGBA
ShadowRootType ShadowRootType ShadowRootType ShadowRootType ShadowRootType
BackendNode BackendNode BackendNode
BackendNodeId BackendNodeId BackendNodeId BackendNodeId
BoxModel BoxModel BoxModel
Quad Quad Quad Quad
Rect Rect Rect
ShapeOutsideInfo ShapeOutsideInfo ShapeOutsideInfo
InspectMode InspectMode
AccessibilityProperties AccessibilityProperties
EventListener EventListener
LiveRegionRelevant LiveRegionRelevant
RGBAColor RGBAColor