A canonical representation of the DOM, which may serve as a standardized format for comparison or storage.
A unique string representing the hash of the DOM structure. This can be used to identify or compare different DOM trees.
OptionallayoutAn optional canonical representation of the layout, similar to the canonical property but focused on layout aspects.
OptionallayoutAn optional hash value representing the layout of the DOM. This can be used to track changes in layout over time.
OptionallayoutAn optional array representing the shape of the layout, detailing how elements are arranged visually.
OptionalresilienceAn optional breakdown of factors contributing to the resilience score, providing insights into the structural integrity of the DOM.
OptionalresilienceAn optional emoji representing the resilience level visually.
OptionalresilienceAn optional label describing the resilience level (e.g., "High", "Medium", "Low").
OptionalresilienceAn optional score indicating the resilience of the DOM structure against potential disruptions or changes.
OptionalshapeAn optional array of strings representing the shape of the DOM. This may include specific patterns or arrangements of elements within the DOM.
An object containing statistical information about the DOM structure.
OptionalstructuralAn optional breakdown of components contributing to the structural score, offering detailed insights into potential weaknesses or strengths.
OptionalstructuralAn optional emoji symbolizing the structural quality.
OptionalstructuralAn optional label that categorizes the structural quality (e.g., "Good", "Needs Improvement").
OptionalstructuralAn optional score reflecting the overall structural quality of the DOM, potentially based on best practices or standards.
OptionalstructureAn optional representation of the hierarchical structure of the DOM, which may provide a visual or programmatic depiction of the nodes and their relationships.
Represents the result of a DOM hashing operation, encapsulating various properties that describe the structure and characteristics of the Document Object Model (DOM) tree.
The
DomHashResultinterface provides detailed information about the hash of the DOM, its shape, statistics, and various resilience and structural scores. This is useful for analyzing and comparing different DOM structures in applications such as web performance analysis, optimization, or validation.DomHashResult