Liking cljdoc? Tell your friends :D
Clojure only.

clj-chrome-devtools.commands.domsnapshot

This domain facilitates obtaining document snapshots with DOM, layout, and style information.

This domain facilitates obtaining document snapshots with DOM, layout, and style information.
raw docstring

get-snapshotclj

(get-snapshot)
(get-snapshot {:as params :keys [computed-style-whitelist]})
(get-snapshot connection {:as params :keys [computed-style-whitelist]})

Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

Parameters map keys:

KeyDescription
:computed-style-whitelistWhitelist of computed styles to return.

Return map keys:

KeyDescription
:dom-nodesThe nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
:layout-tree-nodesThe nodes in the layout tree.
:computed-stylesWhitelisted ComputedStyle properties for each node in the layout tree.
Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened. 

Parameters map keys:


  Key                       | Description 
  --------------------------|------------ 
  :computed-style-whitelist | Whitelist of computed styles to return.

Return map keys:


  Key                | Description 
  -------------------|------------ 
  :dom-nodes         | The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
  :layout-tree-nodes | The nodes in the layout tree.
  :computed-styles   | Whitelisted ComputedStyle properties for each node in the layout tree.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close