Module dom

Module dom 

Source
Expand description

DOM extraction and manipulation module

This module provides functionality for extracting and working with the DOM structure of web pages. It includes:

  • ElementNode: Representation of DOM elements
  • DomTree: Complete DOM tree with indexing for interactive elements
  • SelectorMap: Mapping of indices to element selectors

Re-exports§

pub use element::BoundingBox;
pub use element::ElementNode;
pub use selector_map::ElementSelector;
pub use selector_map::SelectorMap;
pub use tree::DomTree;

Modules§

element
selector_map
tree

Functions§

extract_dom
Extract the DOM tree from a browser tab
extract_simplified_dom
Extract and simplify the DOM tree