Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

minifyHTML may not wrap attributes with double quotation #6

Open
yw662 opened this issue Mar 3, 2021 · 0 comments
Open

minifyHTML may not wrap attributes with double quotation #6

yw662 opened this issue Mar 3, 2021 · 0 comments

Comments

@yw662
Copy link

yw662 commented Mar 3, 2021

> minifier.minifyHTML(`<div style="background: red"></div>`)
'<div style="background: red"></div>'

This is valid, but the space is not trimmed.

> minifier.minifyHTML(`<div style="background:red"></div>`)
"<div style=background:red></div>"

However this is invalid HTML without double quotation, which is a bug that should be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant