Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] minify html cause cpu 100% #394

Closed
xthsky opened this issue Aug 6, 2015 · 3 comments
Closed

[BUG] minify html cause cpu 100% #394

xthsky opened this issue Aug 6, 2015 · 3 comments

Comments

@xthsky
Copy link

xthsky commented Aug 6, 2015

node 0.12.7, html-minifier 0.7.2

bad case:

var minify = require('html-minifier').minify;
var str = '<div style="background:url(\"FyueIVXXXXanapXXSutbFXXX.jpg\") no-repeat"></div>';
console.log(minify(str));
@kangax
Copy link
Owner

kangax commented Aug 6, 2015

var str = '<div style="background:url(\"FyueIVXXXXanapXXSutbFXXX.jpg\") no-repeat"></div>';
                      ^                ^

@kangax kangax closed this as completed Aug 6, 2015
@xthsky
Copy link
Author

xthsky commented Aug 7, 2015

minify should report error, not hang up.

@kangax
Copy link
Owner

kangax commented Aug 9, 2015

Duplicate of #332

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

No branches or pull requests

2 participants