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.
Optional
layoutAn optional canonical representation of the layout, similar to the canonical property but focused on layout aspects.
Optional
layoutAn optional hash value representing the layout of the DOM. This can be used to track changes in layout over time.
Optional
layoutAn optional array representing the shape of the layout, detailing how elements are arranged visually.
Optional
resilienceAn optional breakdown of factors contributing to the resilience score, providing insights into the structural integrity of the DOM.
Optional
resilienceAn optional emoji representing the resilience level visually.
Optional
resilienceAn optional label describing the resilience level (e.g., "High", "Medium", "Low").
Optional
resilienceAn optional score indicating the resilience of the DOM structure against potential disruptions or changes.
Optional
shapeAn 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.
Optional
structuralAn optional breakdown of components contributing to the structural score, offering detailed insights into potential weaknesses or strengths.
Optional
structuralAn optional emoji symbolizing the structural quality.
Optional
structuralAn optional label that categorizes the structural quality (e.g., "Good", "Needs Improvement").
Optional
structuralAn optional score reflecting the overall structural quality of the DOM, potentially based on best practices or standards.
Optional
structureAn 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
DomHashResult
interface 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