Module chrome_remote_interface_model::dom [−][src]
DOM
and Runtime
only.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.
Structs
AttributeModifiedEvent | Fired when |
AttributeRemovedEvent | Fired when |
BackendNode | Backend node with a friendly name. |
BackendNodeId | Unique DOM node identifier used to reference a node that may not have been pushed to the front-end. |
BoxModel | Box model. |
BoxModelBuilder | |
CharacterDataModifiedEvent | Mirrors |
ChildNodeCountUpdatedEvent | Fired when |
ChildNodeInsertedEvent | Mirrors |
ChildNodeRemovedEvent | Mirrors |
CollectClassNamesFromSubtreeCommand | experimental Collects class names for the node with given id and all of it's child nodes. |
CollectClassNamesFromSubtreeReturn | experimental Collects class names for the node with given id and all of it's child nodes. |
CopyToCommand | experimental Creates a deep copy of the specified node and places it into the target container before the given anchor. |
CopyToReturn | experimental Creates a deep copy of the specified node and places it into the target container before the given anchor. |
CssComputedStyleProperty | |
DescribeNodeCommand | Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation. |
DescribeNodeCommandBuilder | |
DescribeNodeReturn | Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation. |
DisableCommand | Disables DOM agent for the given page. |
DisableReturn | Disables DOM agent for the given page. |
DiscardSearchResultsCommand | experimental Discards search results from the session with the given id. |
DiscardSearchResultsReturn | experimental Discards search results from the session with the given id. |
DistributedNodesUpdatedEvent | experimental Called when distrubution is changed. |
DocumentUpdatedEvent | Fired when |
EnableCommand | Enables DOM agent for the given page. |
EnableReturn | Enables DOM agent for the given page. |
FocusCommand | Focuses the given element. |
FocusReturn | Focuses the given element. |
GetAttributesCommand | Returns attributes for the specified node. |
GetAttributesReturn | Returns attributes for the specified node. |
GetBoxModelCommand | Returns boxes for the given node. |
GetBoxModelReturn | Returns boxes for the given node. |
GetContentQuadsCommand | experimental Returns quads that describe node position on the page. This method might return multiple quads for inline nodes. |
GetContentQuadsReturn | experimental Returns quads that describe node position on the page. This method might return multiple quads for inline nodes. |
GetDocumentCommand | Returns the root DOM node (and optionally the subtree) to the caller. |
GetDocumentReturn | Returns the root DOM node (and optionally the subtree) to the caller. |
GetFileInfoCommand | experimental Returns file information for the given File wrapper. |
GetFileInfoReturn | experimental Returns file information for the given File wrapper. |
GetFlattenedDocumentCommand | Deprecated Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead. |
GetFlattenedDocumentReturn | Deprecated Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead. |
GetFrameOwnerCommand | experimental Returns iframe node that owns iframe with the given domain. |
GetFrameOwnerReturn | experimental Returns iframe node that owns iframe with the given domain. |
GetNodeForLocationCommand | Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not. |
GetNodeForLocationCommandBuilder | |
GetNodeForLocationReturn | Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not. |
GetNodeStackTracesCommand | experimental Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation. |
GetNodeStackTracesReturn | experimental Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation. |
GetNodesForSubtreeByStyleCommand | experimental Finds nodes with a given computed style in a subtree. |
GetNodesForSubtreeByStyleReturn | experimental Finds nodes with a given computed style in a subtree. |
GetOuterHtmlCommand | Returns node's HTML markup. |
GetOuterHtmlReturn | Returns node's HTML markup. |
GetRelayoutBoundaryCommand | experimental Returns the id of the nearest ancestor that is a relayout boundary. |
GetRelayoutBoundaryReturn | experimental Returns the id of the nearest ancestor that is a relayout boundary. |
GetSearchResultsCommand | experimental Returns search results from given |
GetSearchResultsReturn | experimental Returns search results from given |
HideHighlightCommand | Hides any highlight. |
HideHighlightReturn | Hides any highlight. |
HighlightNodeCommand | Highlights DOM node. |
HighlightNodeReturn | Highlights DOM node. |
HighlightRectCommand | Highlights given rectangle. |
HighlightRectReturn | Highlights given rectangle. |
InlineStyleInvalidatedEvent | experimental Fired when |
MarkUndoableStateCommand | experimental Marks last undoable state. |
MarkUndoableStateReturn | experimental Marks last undoable state. |
MoveToCommand | Moves node into the new container, places it before the given anchor. |
MoveToReturn | Moves node into the new container, places it before the given anchor. |
Node | DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type. |
NodeBuilder | |
NodeId | Unique DOM node identifier. |
PerformSearchCommand | experimental Searches for a given string in the DOM tree. Use |
PerformSearchReturn | experimental Searches for a given string in the DOM tree. Use |
PseudoElementAddedEvent | experimental Called when a pseudo element is added to an element. |
PseudoElementRemovedEvent | experimental Called when a pseudo element is removed from an element. |
PushNodeByPathToFrontendCommand | experimental Requests that the node is sent to the caller given its path. // FIXME, use XPath |
PushNodeByPathToFrontendReturn | experimental Requests that the node is sent to the caller given its path. // FIXME, use XPath |
PushNodesByBackendIdsToFrontendCommand | experimental Requests that a batch of nodes is sent to the caller given their backend node ids. |
PushNodesByBackendIdsToFrontendReturn | experimental Requests that a batch of nodes is sent to the caller given their backend node ids. |
Quad | An array of quad vertices, x immediately followed by y for each point, points clock-wise. |
QuerySelectorAllCommand | Executes |
QuerySelectorAllReturn | Executes |
QuerySelectorCommand | Executes |
QuerySelectorReturn | Executes |
Rect | Rectangle. |
RectBuilder | |
RedoCommand | experimental Re-does the last undone action. |
RedoReturn | experimental Re-does the last undone action. |
RemoveAttributeCommand | Removes attribute with given name from an element with given id. |
RemoveAttributeReturn | Removes attribute with given name from an element with given id. |
RemoveNodeCommand | Removes node with given id. |
RemoveNodeReturn | Removes node with given id. |
RequestChildNodesCommand | Requests that children of the node with given id are returned to the caller in form of
|
RequestChildNodesReturn | Requests that children of the node with given id are returned to the caller in form of
|
RequestNodeCommand | Requests that the node is sent to the caller given the JavaScript node object reference. All
nodes that form the path from the node to the root are also sent to the client as a series of
|
RequestNodeReturn | Requests that the node is sent to the caller given the JavaScript node object reference. All
nodes that form the path from the node to the root are also sent to the client as a series of
|
ResolveNodeCommand | Resolves the JavaScript node object for a given NodeId or BackendNodeId. |
ResolveNodeCommandBuilder | |
ResolveNodeReturn | Resolves the JavaScript node object for a given NodeId or BackendNodeId. |
Rgba | A structure holding an RGBA color. |
RgbaBuilder | |
ScrollIntoViewIfNeededCommand | experimental Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node. |
ScrollIntoViewIfNeededCommandBuilder | experimental |
ScrollIntoViewIfNeededReturn | experimental Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node. |
SetAttributeValueCommand | Sets attribute for an element with given id. |
SetAttributeValueReturn | Sets attribute for an element with given id. |
SetAttributesAsTextCommand | Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs. |
SetAttributesAsTextReturn | Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs. |
SetChildNodesEvent | Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids. |
SetFileInputFilesCommand | Sets files for the given file input element. |
SetFileInputFilesCommandBuilder | |
SetFileInputFilesReturn | Sets files for the given file input element. |
SetInspectedNodeCommand | experimental Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). |
SetInspectedNodeReturn | experimental Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). |
SetNodeNameCommand | Sets node name for a node with given id. |
SetNodeNameReturn | Sets node name for a node with given id. |
SetNodeStackTracesEnabledCommand | experimental Sets if stack traces should be captured for Nodes. See |
SetNodeStackTracesEnabledReturn | experimental Sets if stack traces should be captured for Nodes. See |
SetNodeValueCommand | Sets node value for a node with given id. |
SetNodeValueReturn | Sets node value for a node with given id. |
SetOuterHtmlCommand | Sets node HTML markup, returns new node id. |
SetOuterHtmlReturn | Sets node HTML markup, returns new node id. |
ShadowRootPoppedEvent | experimental Called when shadow root is popped from the element. |
ShadowRootPushedEvent | experimental Called when shadow root is pushed into the element. |
ShapeOutsideInfo | CSS Shape Outside details. |
UndoCommand | experimental Undoes the last performed action. |
UndoReturn | experimental Undoes the last performed action. |
Enums
PseudoType | |
ShadowRootType |