Life-V / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
0 stars 0 forks source link

Strip spaces between quoted attributes #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
According to HTML5 spec, attributes contain multiple values must be quoted 
(i.e., unquoted attributes mustn't contain space):
http://www.w3.org/TR/html5/syntax.html#attributes-0

But we can strip space between quoted attributes to save some bits, get the 
idea from here:
https://github.com/kangax/html-minifier/issues/2

Are you interested in hosting this project on github? It's more easily  to get 
contributed there. :)

Original issue reported on code.google.com by gra...@gmail.com on 8 Dec 2011 at 6:29

GoogleCodeExporter commented 8 years ago
Oops, false alarm. HC actually does it correctly. Wrote some bad code while 
testing it. Sorry about it
But the stripping space thing still applies.

Original comment by gra...@gmail.com on 8 Dec 2011 at 7:50

GoogleCodeExporter commented 8 years ago
Hm, never seen such technique before with removing spaces, I will try to find 
something in specs about it.

About github - maybe in the future, googlecode gets the job done for now, I 
don't get that many contribution requests to get out of hand.

Thanks.

Original comment by serg472@gmail.com on 8 Dec 2011 at 8:54