Closed jlgrall closed 9 years ago
A quick fix for now would be keeping comments as well, e.g. the option comments: true
. That said I wasn't aware of this variation and will look it up and possibly fix it.
Legit sitepoint has a good reference http://www.sitepoint.com/web-foundations/internet-explorer-conditional-comments/ see the downlevel releaved conditional comments section. It's a hack to keep code valid, will fix asap
Interesting read, and thx for the quick fix. I don't need it as I am not really targeting old IE, but thx.
Good luck with the regexp.
simplified the comments parser and released as v1.1.0, its actually nice when reducing code leads to better output :)
Thanks, and yep, good job.
I will test it in a few days.
Hi, I am using your minimizer through https://github.com/jonathanepollack/gulp-minify-html and I found a bug.
With the option
conditionals: true
, I have an error in the output.Input:
Output:
The second conditional is not retained, probably because it is mixed with HTML comments to hide the conditional to other browsers.
Also note that the spaces should be removed.
(This is code is used in http://html5boilerplate.com/, see the output with "IE classes".)