pub struct HtmlCompareOptions {
pub ignore_whitespace: bool,
pub ignore_attributes: bool,
pub ignored_attributes: HashSet<String>,
pub ignore_text: bool,
pub ignore_comments: bool,
pub ignore_sibling_order: bool,
pub ignore_style_contents: bool,
}
Expand description
Configuration for HTML comparison
Fields§
§ignore_whitespace: bool
Ignore whitespace differences between elements
ignore_attributes: bool
Ignore all HTML attributes
ignored_attributes: HashSet<String>
Specific attributes to ignore (if ignore_attributes is false)
ignore_text: bool
Ignore text node differences
ignore_comments: bool
Ignore comment nodes
ignore_sibling_order: bool
Ignore order of sibling elements
ignore_style_contents: bool
Ignore contents of