chore(html/minifier): Typo (#5995)

This commit is contained in:
Alexander Akait 2022-09-30 05:11:47 +03:00 committed by GitHub
parent 447e2449d9
commit a716b40d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1218,7 +1218,7 @@ impl Minifier<'_> {
self.is_preserved_comment(&comment.data)
}
Child::Element(element)
if self.options.remove_empty_metedata_elements
if self.options.remove_empty_metadata_elements
&& (!self
.is_element_displayed(element.namespace, &element.tag_name)
|| (matches!(

View File

@ -121,7 +121,7 @@ pub struct MinifyOptions {
// Remove safe empty elements with metadata content, i.e. the `script` and `style` element
// without content and attributes, `meta` and `link` elements without attributes and etc
#[serde(default = "true_by_default")]
pub remove_empty_metedata_elements: bool,
pub remove_empty_metadata_elements: bool,
#[serde(default = "true_by_default")]
pub remove_comments: bool,
#[serde(default = "default_preserve_comments")]