html-minifier.git
14 years agoRefactor `minify` function slightly. More tests — case normalization, space normaliza...
Juriy Zaytsev [Tue, 9 Feb 2010 18:17:18 +0000 (13:17 -0500)]
Refactor `minify` function slightly. More tests — case normalization, space normalization and options.

14 years agoAdd tests for removing quotes around attributes.
Juriy Zaytsev [Tue, 9 Feb 2010 00:04:28 +0000 (19:04 -0500)]
Add tests for removing quotes around attributes.

14 years agoCollapse whitespace in class attributes to 1 space (not only trim).
Juriy Zaytsev [Mon, 8 Feb 2010 23:57:34 +0000 (18:57 -0500)]
Collapse whitespace in class attributes to 1 space (not only trim).

14 years agoTrim whitespace from class attributes.
Juriy Zaytsev [Mon, 8 Feb 2010 23:53:49 +0000 (18:53 -0500)]
Trim whitespace from class attributes.
Add todo item to investigate when it is safe to trim other attributes (and which).
Test this class whitespace trimming.

14 years agoTweak input textarea height.
Juriy Zaytsev [Mon, 8 Feb 2010 17:11:11 +0000 (12:11 -0500)]
Tweak input textarea height.

14 years agoFix UI to fit smaller screens better. Add a couple more todo items.
Juriy Zaytsev [Mon, 8 Feb 2010 16:33:34 +0000 (11:33 -0500)]
Fix UI to fit smaller screens better. Add a couple more todo items.

14 years agoAdd test for empty attributes.
Juriy Zaytsev [Mon, 8 Feb 2010 13:40:07 +0000 (08:40 -0500)]
Add test for empty attributes.
Add more empty "attributes" to the list (onfocus, onchange, onblur).

14 years agoMinifier is now in a separate file, under /src.
Juriy Zaytsev [Mon, 8 Feb 2010 06:07:47 +0000 (01:07 -0500)]
Minifier is now in a separate file, under /src.
Start writing unit tests with qUnit.
List parser defficiencies that were taken care of.
Add more explanations to minification options.
Various fixes and tweaks to parser and minifier.

14 years agoFix multi-line comment and CDATA matching.
Juriy Zaytsev [Sat, 6 Feb 2010 04:51:19 +0000 (23:51 -0500)]
Fix multi-line comment and CDATA matching.

14 years agoAdd todo section;
Juriy Zaytsev [Fri, 5 Feb 2010 23:32:41 +0000 (18:32 -0500)]
Add todo section;
Add warning about draft state of minifier;
Rearrange UI slightly;
Whitepaces are now collapsed to 0 characters by default (instead of 1);
Make sure tags and attribute names match in a case-insensitive manner.

14 years agoUse proper characters when checking attribute value for validity when ommitting quotes;
Juriy Zaytsev [Fri, 5 Feb 2010 23:01:26 +0000 (18:01 -0500)]
Use proper characters when checking attribute value for validity when ommitting quotes;
Make sure lower-case doctype matches.

14 years agomarkup tweak
Juriy Zaytsev [Fri, 5 Feb 2010 21:51:03 +0000 (16:51 -0500)]
markup tweak

14 years agoAdd version number. Avoid division by 0 when converting empty string.
Juriy Zaytsev [Fri, 5 Feb 2010 21:21:15 +0000 (16:21 -0500)]
Add version number. Avoid division by 0 when converting empty string.

14 years agoRenamed index file to index.html
Juriy Zaytsev [Fri, 5 Feb 2010 20:55:45 +0000 (15:55 -0500)]
Renamed index file to index.html

14 years agoInitial import
Juriy Zaytsev [Fri, 5 Feb 2010 20:49:43 +0000 (15:49 -0500)]
Initial import