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: boolIgnore whitespace differences between elements
ignore_attributes: boolIgnore all HTML attributes
ignored_attributes: HashSet<String>Specific attributes to ignore (if ignore_attributes is false)
ignore_text: boolIgnore text node differences
ignore_comments: boolIgnore comment nodes
ignore_sibling_order: boolIgnore order of sibling elements
ignore_style_contents: boolIgnore contents of