You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure this is invalid HTML (due to the /) but locking the cpu at 100% is not the behaviour I'd expect.
I can't describe the exact cause but can note some exclusions:
removing the / fixes it
removing the classnames fixes it (produces an error)
The root cause is the html parser being powered by regular expressions which behave well when faced with valid input, but fall victim to catastrophic backtracking when faced with invalid input.
When I try to minify my file
test.html
commands
The minify process takes like forever. It uses 100% from one of my cpu cores.
The way to stop the process is to kill it with killall node -9
If I use less chars in the src part then it speeds up and results in an
Parse Error
which is correct behavior.Also tried the other versions (0.8.0, 0.7.0, ...)with the same result
I think there is something broken.
The text was updated successfully, but these errors were encountered: