Export to GitHub

htmlcompressor - issue #99

&& in attributes breaks compression


Posted on Dec 26, 2014 by Quick Hippo

What steps will reproduce the problem? 1. Write HTML that has to use && (eg: Angular) 2. Try to run the compressor on it. 3. Note that you have missing code, weird quotation marks, etc.

What is the expected output? What do you see instead?

I expect && to appear in my attributes and for the rest of the code to compress nicely. Instead, the parser seems to be totally confused.

What version of the product are you using? On what operating system?

0.1.2 via middleman-minify-html 3.4.0

Comment #1

Posted on Jun 19, 2015 by Helpful Wombat

but you are using a raw ruby port of this jar. https://github.com/paolochiodi/htmlcompressor

Unless you can reproduce it with the java version (and I can't) I think you should report it as issue here: https://github.com/paolochiodi/htmlcompressor/issues

Status: New

Labels:
Type-Defect Priority-Medium