htmlcompressor icon indicating copy to clipboard operation
htmlcompressor copied to clipboard

Strip spaces between quoted attributes

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

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 [email protected] on 8 Dec 2011 at 6:29

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

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 [email protected] on 8 Dec 2011 at 7:50

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

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 [email protected] on 8 Dec 2011 at 8:54

  • Changed title: *Strip spaces between quoted attributes *
  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter