Implement Default and spec_compliant for Cfg
This commit is contained in:
parent
724c5ec4e4
commit
563f7dfc2a
|
@ -43,4 +43,18 @@ impl Cfg {
|
|||
remove_processing_instructions: false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spec_compliant() -> Cfg {
|
||||
Cfg {
|
||||
ensure_spec_compliant_unquoted_attribute_values: true,
|
||||
keep_spaces_between_attributes: true,
|
||||
..Cfg::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Cfg {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue