mankyd / htmlmin

A configurable HTML Minifier with safety features
https://htmlmin.readthedocs.org/en/latest/
Other
129 stars 40 forks source link

Better attribute handling and some other minor changes #36

Closed mina86 closed 7 years ago

mina86 commented 8 years ago
  1. Most importantly, reorder attributes to avoid spaces.
  2. There’s no need for \n after <!DOCTYPE…>.
  3. Never turn boolean attributes into attributes with empty value.
  4. Add cls attribute so it’s easier to extend HTMLMinParser.
  5. Some refactoring to use io.StringIO rather than a list.
mankyd commented 7 years ago

FYI: I've merged this, plus a few small cleanups. Thanks a ton for this.