Skip to content

Commit

Permalink
Fix attr lowercasing
Browse files Browse the repository at this point in the history
In some case, attrValue isn't a string.
  • Loading branch information
maltsev committed Sep 19, 2021
1 parent 5603e01 commit 2dbf413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/normalizeAttributeValues.es6
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function normalizeAttributeValues(tree) {
|| caseInsensitiveAttributes[attrNameLower].includes(node.tag)
)
) {
node.attrs[attrName] = attrValue.toLowerCase();
node.attrs[attrName] = attrValue.toLowerCase ? attrValue.toLowerCase() : attrValue;
}
});

Expand Down

0 comments on commit 2dbf413

Please sign in to comment.