Export to GitHub

htmlcompressor - issue #90

removeSpacesInsideTags incorrectly removes space after some unquoted attributes


Posted on Dec 28, 2013 by Swift Hippo

$ echo '<a href=#a />' >test.html $ java -jar htmlcompressor-1.5.3.jar test.html

Expected output: <a href=#a /> Actual output: <a href=#a/>

Fix attached.

Attachments

Comment #1

Posted on Dec 28, 2013 by Swift Hippo

PS. Sorry, I have no idea how to work with SVN or prepare a proper patch (or something). Hope that this diff will be enough to apply it to the sources.

-- Michal Nazarewicz

Status: New

Labels:
Type-Defect Priority-Medium