summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Juriy Zaytsev [Mon, 15 Mar 2010 17:46:39 +0000 (13:46 -0400)]
Strip trailing ";" from style attributes (this allows to strip quotes from values like "display:none;").
Juriy Zaytsev [Sun, 14 Mar 2010 18:23:25 +0000 (14:23 -0400)]
area's shape="rect" is a default attribute (strip it as part of "removeRedundantAttribute" option).
Juriy Zaytsev [Sat, 13 Mar 2010 23:41:31 +0000 (18:41 -0500)]
Make it possible to quickly select "all", "none" or "safe" options.
Juriy Zaytsev [Sat, 13 Mar 2010 22:57:32 +0000 (17:57 -0500)]
Trim whitespace in Number-type attributes (e.g. rows, cols in TEXTAREA; tabindex in A, BUTTON, etc.).
Make sure URI and Number -type attributes are matched on proper elements (e.g. <head profile="..."> should be trimmed, but not <mytag profile="...">x</mytag>).
Juriy Zaytsev [Sat, 13 Mar 2010 22:16:56 +0000 (17:16 -0500)]
Trim whitespace in style attributes.
Juriy Zaytsev [Fri, 12 Mar 2010 17:42:06 +0000 (12:42 -0500)]
Trim whitespace in attribute values. For now, only in those with %URI; type: href, src, action, etc.
Juriy Zaytsev [Thu, 11 Mar 2010 17:06:41 +0000 (12:06 -0500)]
Minifier now removes insignificant whitespace in conditional comments.
Juriy Zaytsev [Wed, 10 Mar 2010 17:37:04 +0000 (12:37 -0500)]
Start testing HTMLLint. Add detection of href="javascript:void(0)" during linting.
Juriy Zaytsev [Wed, 10 Mar 2010 02:57:53 +0000 (21:57 -0500)]
Add detection of `href="javascript:void 0"` to todo.
Juriy Zaytsev [Wed, 10 Mar 2010 02:12:57 +0000 (21:12 -0500)]
Add test with optgroups to "removing optional tags in <option>".
Juriy Zaytsev [Wed, 10 Mar 2010 02:04:15 +0000 (21:04 -0500)]
Add README.md;
Add </option> to tags allowed for deletion (thanks Jakub Vrána).
Juriy Zaytsev [Tue, 9 Mar 2010 15:02:15 +0000 (10:02 -0500)]
Delete JS comment delimeters before HTML comment delimeters in scripts.
Juriy Zaytsev [Tue, 9 Mar 2010 14:21:16 +0000 (09:21 -0500)]
Fix comments in scripts (forgot that "<!--" strips everything till new line; thanks @zoompf for reminder).
Juriy Zaytsev [Mon, 8 Mar 2010 06:06:23 +0000 (01:06 -0500)]
Fix a bug with space-less attributes. Move scripts to the bottom.
Juriy Zaytsev [Thu, 4 Mar 2010 23:21:54 +0000 (18:21 -0500)]
Add TR to the list of optional end tags.
Juriy Zaytsev [Mon, 1 Mar 2010 16:35:30 +0000 (11:35 -0500)]
Slight optimization to `trimWhitespace`. Fix bug with `removeEmptyElements` cutting off tags in some cases.
Juriy Zaytsev [Fri, 26 Feb 2010 17:32:13 +0000 (12:32 -0500)]
Fix grammatical error.
Juriy Zaytsev [Fri, 26 Feb 2010 14:25:32 +0000 (09:25 -0500)]
Add "thead", "tbody" and "tfoot" end tags to "allowed for removal" list.
Juriy Zaytsev [Fri, 26 Feb 2010 14:20:38 +0000 (09:20 -0500)]
Name button "minify" not "convert". Restyle todo list slightly.
Juriy Zaytsev [Thu, 25 Feb 2010 22:08:45 +0000 (17:08 -0500)]
Test `removeEmptyAttributes` on IMG element (should not remove "src" and "alt" attributes).
Juriy Zaytsev [Wed, 24 Feb 2010 06:10:25 +0000 (01:10 -0500)]
Warn about style attributes.
Juriy Zaytsev [Wed, 24 Feb 2010 06:00:51 +0000 (01:00 -0500)]
Test whitespace collapsing in style element.
Juriy Zaytsev [Mon, 22 Feb 2010 03:15:30 +0000 (22:15 -0500)]
Convert tabs to spaces in htmlparser.js.
Juriy Zaytsev [Mon, 22 Feb 2010 01:39:04 +0000 (20:39 -0500)]
Add link to source on github. Remove redundant comment from index.html.
Juriy Zaytsev [Sat, 20 Feb 2010 21:07:48 +0000 (16:07 -0500)]
Add todo item "Wanr about missing doctype"
Juriy Zaytsev [Mon, 15 Feb 2010 14:03:35 +0000 (09:03 -0500)]
Add GA.
Juriy Zaytsev [Fri, 12 Feb 2010 21:30:37 +0000 (16:30 -0500)]
Bump version to 0.4.
Juriy Zaytsev [Fri, 12 Feb 2010 21:28:20 +0000 (16:28 -0500)]
Extract LINT logic into a separate file -- htmllint.js, now also under a standalone constructor -- HTMLLint (still needs tests)
Juriy Zaytsev [Fri, 12 Feb 2010 05:54:00 +0000 (00:54 -0500)]
Add ability to remove optional tags (</body> and </html> for now);
Bump to version 0.3;
Reorganize main page slightly.
Juriy Zaytsev [Thu, 11 Feb 2010 22:30:58 +0000 (17:30 -0500)]
Slight refactoring.
Juriy Zaytsev [Thu, 11 Feb 2010 21:30:04 +0000 (16:30 -0500)]
Remove "write more tests" from todo. Looks like all current cases are already covered.
Juriy Zaytsev [Thu, 11 Feb 2010 21:08:08 +0000 (16:08 -0500)]
Add tests for collapsing boolean attributes.
Juriy Zaytsev [Thu, 11 Feb 2010 21:03:26 +0000 (16:03 -0500)]
Fix logic error with charset attribute check.
Write more tests for removing redundant attributes.
Juriy Zaytsev [Thu, 11 Feb 2010 20:43:18 +0000 (15:43 -0500)]
Trim whitespace around values of event handler attributes.
More test cases for "javascript:" cleaning.
Juriy Zaytsev [Thu, 11 Feb 2010 18:30:57 +0000 (13:30 -0500)]
Do not strip conditional comments (write tests for it and mention on a main page).
Fix CDATA sections.
Juriy Zaytsev [Wed, 10 Feb 2010 22:56:37 +0000 (17:56 -0500)]
Fix typo. Fix CDATA bug.
Juriy Zaytsev [Wed, 10 Feb 2010 22:21:03 +0000 (17:21 -0500)]
Add option to strip CDATA sections from script and style elements.
Juriy Zaytsev [Wed, 10 Feb 2010 19:36:14 +0000 (14:36 -0500)]
Bump version to 0.2 on main page.
Juriy Zaytsev [Wed, 10 Feb 2010 19:34:08 +0000 (14:34 -0500)]
Add MIT license and mention it in htmlminifier.js;
Add checkbox to remove empty elements (off by default);
Add checkbox to remove comments from STYLE and SCRIPT elements;
Collapse whitespace in textnodes, when it's safe to do so;
Rename options to get rid of "should" prefix.
Juriy Zaytsev [Wed, 10 Feb 2010 17:34:24 +0000 (12:34 -0500)]
Fix some of the bugs in element removal mechanism. Write more tests for it.
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.
Juriy Zaytsev [Tue, 9 Feb 2010 00:04:28 +0000 (19:04 -0500)]
Add tests for removing quotes around attributes.
Juriy Zaytsev [Mon, 8 Feb 2010 23:57:34 +0000 (18:57 -0500)]
Collapse whitespace in class attributes to 1 space (not only trim).
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.
Juriy Zaytsev [Mon, 8 Feb 2010 17:11:11 +0000 (12:11 -0500)]
Tweak input textarea height.
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.
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).
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.
Juriy Zaytsev [Sat, 6 Feb 2010 04:51:19 +0000 (23:51 -0500)]
Fix multi-line comment and CDATA matching.
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.
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.
Juriy Zaytsev [Fri, 5 Feb 2010 21:51:03 +0000 (16:51 -0500)]
markup tweak
Juriy Zaytsev [Fri, 5 Feb 2010 21:21:15 +0000 (16:21 -0500)]
Add version number. Avoid division by 0 when converting empty string.
Juriy Zaytsev [Fri, 5 Feb 2010 20:55:45 +0000 (15:55 -0500)]
Renamed index file to index.html
Juriy Zaytsev [Fri, 5 Feb 2010 20:49:43 +0000 (15:49 -0500)]
Initial import