html-minifier.git
10 years agoUpdate README.md.
XhmikosR [Thu, 23 Jan 2014 17:27:41 +0000 (19:27 +0200)]
Update README.md.

10 years agoUpdate travis
kangax [Thu, 23 Jan 2014 16:12:03 +0000 (11:12 -0500)]
Update travis

10 years agoUpdate LICENSE
kangax [Thu, 23 Jan 2014 16:02:02 +0000 (11:02 -0500)]
Update LICENSE

10 years agoUpdate README
kangax [Thu, 23 Jan 2014 15:56:45 +0000 (10:56 -0500)]
Update README

10 years agoMerge pull request #108 from XhmikosR/gh-pages
Juriy Zaytsev [Thu, 23 Jan 2014 15:51:01 +0000 (07:51 -0800)]
Merge pull request #108 from XhmikosR/gh-pages

Various improvements

10 years agoUse the minified all.js file.
XhmikosR [Thu, 23 Jan 2014 08:30:30 +0000 (10:30 +0200)]
Use the minified all.js file.

10 years agohtmlparser.js: Make the license header comment important.
XhmikosR [Wed, 22 Jan 2014 18:26:16 +0000 (20:26 +0200)]
htmlparser.js: Make the license header comment important.

10 years agoUse QUnit from OSSCDN.
XhmikosR [Wed, 22 Jan 2014 17:46:13 +0000 (19:46 +0200)]
Use QUnit from OSSCDN.

10 years agohtml: switch to simple doctype and use the concatenated JS dist file.
XhmikosR [Wed, 22 Jan 2014 17:59:36 +0000 (19:59 +0200)]
html: switch to simple doctype and use the concatenated JS dist file.

10 years agoUpdate README.md.
XhmikosR [Wed, 22 Jan 2014 17:58:45 +0000 (19:58 +0200)]
Update README.md.

* add dependencies badge
* use the new .io URL
* simplify code syntax

10 years agoClean up .jshintrc.
XhmikosR [Wed, 22 Jan 2014 17:58:06 +0000 (19:58 +0200)]
Clean up .jshintrc.

10 years agoUpdate .gitignore.
XhmikosR [Wed, 22 Jan 2014 17:57:45 +0000 (19:57 +0200)]
Update .gitignore.

10 years agoAdd a _config.yml to exclude unneeded files/folders from being parsed by Jekyll.
XhmikosR [Wed, 22 Jan 2014 17:57:35 +0000 (19:57 +0200)]
Add a _config.yml to exclude unneeded files/folders from being parsed by Jekyll.

10 years agoUpdate devDependencies.
XhmikosR [Wed, 22 Jan 2014 17:56:43 +0000 (19:56 +0200)]
Update devDependencies.

10 years agoNormalize package.json and add missing properties.
XhmikosR [Wed, 22 Jan 2014 17:53:38 +0000 (19:53 +0200)]
Normalize package.json and add missing properties.

10 years agoUpdate .npmignore.
XhmikosR [Wed, 22 Jan 2014 09:43:20 +0000 (11:43 +0200)]
Update .npmignore.

10 years agoAdd minify script
kangax [Wed, 22 Jan 2014 18:19:40 +0000 (13:19 -0500)]
Add minify script

10 years agoAdd lint, build, test scripts to package.json. Update README.
kangax [Wed, 22 Jan 2014 18:03:56 +0000 (13:03 -0500)]
Add lint, build, test scripts to package.json. Update README.

10 years agoAdd test
kangax [Tue, 21 Jan 2014 19:21:32 +0000 (14:21 -0500)]
Add test

10 years agoVersion 0.5.5
kangax [Tue, 21 Jan 2014 19:02:16 +0000 (14:02 -0500)]
Version 0.5.5

10 years agoUpdate README.md
Juriy Zaytsev [Fri, 3 Jan 2014 04:26:16 +0000 (23:26 -0500)]
Update README.md

10 years agoMerge pull request #104 from almirfilho/gh-pages
Juriy Zaytsev [Thu, 19 Dec 2013 23:08:55 +0000 (15:08 -0800)]
Merge pull request #104 from almirfilho/gh-pages

Add missing HTML inline tags for collapsing whitespace

10 years agoAdds missing HTML inline tags for collapsing whitespace
Almir Filho [Thu, 19 Dec 2013 13:52:05 +0000 (11:52 -0200)]
Adds missing HTML inline tags for collapsing whitespace

10 years agoMerge pull request #93 from stieler-it/patch-1
Juriy Zaytsev [Mon, 11 Nov 2013 15:59:06 +0000 (07:59 -0800)]
Merge pull request #93 from stieler-it/patch-1

Preserve quotes if attribute ends with a trailing slash

10 years agoAdded a comment to make the reason behind the expression more verbose
stieler-it [Mon, 11 Nov 2013 06:36:48 +0000 (07:36 +0100)]
Added a comment to make the reason behind the expression more verbose

10 years agoAdded a test that fails if attribute quotes are stripped with a trailing slash
stieler-it [Mon, 11 Nov 2013 06:36:07 +0000 (07:36 +0100)]
Added a test that fails if attribute quotes are stripped with a trailing slash

10 years agoMerge pull request #96 from sparanoid/feature/time-tag
Juriy Zaytsev [Wed, 6 Nov 2013 17:41:59 +0000 (09:41 -0800)]
Merge pull request #96 from sparanoid/feature/time-tag

Add space around time tag

10 years agoAdd space around time tag
Tunghsiao Liu [Wed, 6 Nov 2013 17:27:30 +0000 (01:27 +0800)]
Add space around time tag

10 years agoMerge pull request #94 from rolftimmermans/newline-collapse
Juriy Zaytsev [Mon, 4 Nov 2013 10:51:57 +0000 (02:51 -0800)]
Merge pull request #94 from rolftimmermans/newline-collapse

Newlines should be collapsed to single space.

10 years agoNewlines should be collapsed to single space.
Rolf Timmermans [Mon, 4 Nov 2013 10:14:30 +0000 (11:14 +0100)]
Newlines should be collapsed to single space.

10 years agoUpdate front page again
kangax [Sat, 2 Nov 2013 13:38:08 +0000 (14:38 +0100)]
Update front page again

10 years agoUpdate front page
kangax [Sat, 2 Nov 2013 13:36:41 +0000 (14:36 +0100)]
Update front page

10 years agoUpdate charset
kangax [Sat, 2 Nov 2013 13:31:18 +0000 (14:31 +0100)]
Update charset

10 years agoChange doctype
kangax [Sat, 2 Nov 2013 13:25:44 +0000 (14:25 +0100)]
Change doctype

10 years agoPreserve quotes if attribute ends with a trailing slash
stieler-it [Tue, 22 Oct 2013 09:56:53 +0000 (11:56 +0200)]
Preserve quotes if attribute ends with a trailing slash

minified URLs in parameters, like <a href="http://www.example.com/"> need to keept their quotes because <a href=http://www.example.com/> is interpreted as an URL without trailing slash

11 years agoBump version to 0.5.4
kangax [Wed, 4 Sep 2013 11:10:57 +0000 (13:10 +0200)]
Bump version to 0.5.4

11 years agoMerge pull request #82 from mhulse/patch-3
Juriy Zaytsev [Wed, 4 Sep 2013 11:06:41 +0000 (04:06 -0700)]
Merge pull request #82 from mhulse/patch-3

New feature: Ignoring tags.

11 years agoIgnored tags: Final tweaks before sending PR.
Micky Hulse [Wed, 4 Sep 2013 02:27:42 +0000 (19:27 -0700)]
Ignored tags: Final tweaks before sending PR.

See: kangax/html-minifier#10

11 years agoCleaning up a few things like ...
Micky Hulse [Wed, 21 Aug 2013 22:14:17 +0000 (15:14 -0700)]
Cleaning up a few things like ...

… removal of an unused variable.

11 years agoSimplified regex ...
Micky Hulse [Wed, 21 Aug 2013 21:21:35 +0000 (14:21 -0700)]
Simplified regex ...

For finding start and end "ignored" tags.

11 years agoNew feature: "ignored" tags.
Micky Hulse [Wed, 21 Aug 2013 10:15:34 +0000 (03:15 -0700)]
New feature: "ignored" tags.

Still a work in progress.

11 years agoMerge pull request #81 from mhulse/patch-2
Juriy Zaytsev [Tue, 20 Aug 2013 09:53:00 +0000 (02:53 -0700)]
Merge pull request #81 from mhulse/patch-2

Fix whitespace not collapsing after <textarea>. Closes #77

11 years agoWhitespace after textarea/pre patch
Micky Hulse [Tue, 20 Aug 2013 06:32:20 +0000 (23:32 -0700)]
Whitespace after textarea/pre patch

Fix for issue #77 with collapseWhitespace tests.

11 years agoAdded new collapseWhitespace test ...
Micky Hulse [Tue, 20 Aug 2013 02:27:04 +0000 (19:27 -0700)]
Added new collapseWhitespace test ...

Failing currently.

11 years agoRemoved unused variable.
Micky Hulse [Tue, 20 Aug 2013 02:23:06 +0000 (19:23 -0700)]
Removed unused variable.

I forgot to kill this sucker via my last patch.

11 years agoMerge pull request #79 from mhulse/patch-1
Juriy Zaytsev [Sun, 18 Aug 2013 22:34:28 +0000 (15:34 -0700)]
Merge pull request #79 from mhulse/patch-1

Add `isIgnoredComment()`

11 years agoAdded tests for "ignored" comments.
Micky Hulse [Sun, 18 Aug 2013 22:24:32 +0000 (15:24 -0700)]
Added tests for "ignored" comments.

11 years agoUpdate README
kangax [Sun, 18 Aug 2013 10:00:00 +0000 (12:00 +0200)]
Update README

11 years agoAdded isIgnoredComment()
Micky Hulse [Thu, 15 Aug 2013 05:06:01 +0000 (22:06 -0700)]
Added isIgnoredComment()

Patch for issue #70.

11 years agojshint parser
kangax [Wed, 3 Jul 2013 22:18:32 +0000 (00:18 +0200)]
jshint parser

11 years agoMerge pull request #71 from webnard/patch-1
Juriy Zaytsev [Sun, 30 Jun 2013 18:15:27 +0000 (11:15 -0700)]
Merge pull request #71 from webnard/patch-1

Add more tags to collapseWhitespaceSmart whitelist

11 years agoMore tags added to collapseWhitespaceSmart whitelist
Ian Hunter [Sat, 29 Jun 2013 04:58:08 +0000 (22:58 -0600)]
More tags added to collapseWhitespaceSmart whitelist

cf. http://www.w3.org/Amaya/User/doc/HTML-elements/inline.html

11 years agoBetter support for boolean attributes. Closes #63. Version 0.5.3
kangax [Wed, 19 Jun 2013 11:09:48 +0000 (13:09 +0200)]
Better support for boolean attributes. Closes #63. Version 0.5.3

11 years agoMerge pull request #67 from sndrs/gh-pages
Juriy Zaytsev [Wed, 19 Jun 2013 10:57:43 +0000 (03:57 -0700)]
Merge pull request #67 from sndrs/gh-pages

Add code, kbd and q to list of tags with space around them.

11 years agologic mistake - restore checks for presence of '/'
sndrs [Thu, 13 Jun 2013 16:56:42 +0000 (17:56 +0100)]
logic mistake - restore checks for presence of '/'

11 years agoimages are a special case
sndrs [Thu, 13 Jun 2013 16:49:33 +0000 (17:49 +0100)]
images are a special case

11 years agotests for special tags need to pass the collapseWhitespace: true options
sndrs [Thu, 13 Jun 2013 16:48:26 +0000 (17:48 +0100)]
tests for special tags need to pass the collapseWhitespace: true options

11 years agojust tidying up
sndrs [Thu, 13 Jun 2013 15:06:53 +0000 (16:06 +0100)]
just tidying up

11 years agojshint wanted the parens to continue past linting
sndrs [Thu, 13 Jun 2013 15:06:23 +0000 (16:06 +0100)]
jshint wanted the parens to continue past linting

11 years agotests for 6e5005ef7ed7c3dd9baf6ecc39c3ec1b2470b068
sndrs [Thu, 13 Jun 2013 14:36:56 +0000 (15:36 +0100)]
tests for 6e5005ef7ed7c3dd9baf6ecc39c3ec1b2470b068

dammit! commited the wrong thing…fix that

11 years agotests for 6e5005ef7ed7c3dd9baf6ecc39c3ec1b2470b068
sndrs [Thu, 13 Jun 2013 14:33:13 +0000 (15:33 +0100)]
tests for 6e5005ef7ed7c3dd9baf6ecc39c3ec1b2470b068

11 years agoadd code, kbd and quote to tags with space around them
Alex Sanders [Thu, 13 Jun 2013 12:35:49 +0000 (14:35 +0200)]
add code, kbd and quote to tags with space around them

these tags get cinched up currently, e.g. <p>here's some<code>code</code></p> and <p>I said<q>yes!<q>and left.<p>

11 years agoMerge pull request #61 from mathiasbynens/gh-pages
Juriy Zaytsev [Tue, 14 May 2013 17:47:47 +0000 (10:47 -0700)]
Merge pull request #61 from mathiasbynens/gh-pages

More robust check of unquoted attribute values

11 years agoImprove `canRemoveAttributeQuotes`
Mathias Bynens [Tue, 14 May 2013 16:33:08 +0000 (18:33 +0200)]
Improve `canRemoveAttributeQuotes`

See http://mathiasbynens.be/notes/unquoted-attribute-values for how browsers behave when it comes to unquoted attribute values, and what the HTML spec (based on pre-existing behavior) says about it.

Closes #60 and #61.

11 years agoMerge pull request #59 from stephenplusplus/gh-pages
Juriy Zaytsev [Tue, 14 May 2013 03:47:18 +0000 (20:47 -0700)]
Merge pull request #59 from stephenplusplus/gh-pages

Add HTML5 as an option

11 years agoHTML5 as an option.
Stephen Sawchuk [Tue, 14 May 2013 03:09:09 +0000 (23:09 -0400)]
HTML5 as an option.

11 years agoUpdate to 0.5.2
kangax [Mon, 13 May 2013 00:05:36 +0000 (20:05 -0400)]
Update to 0.5.2

11 years agoMerge pull request #57 from sindresorhus/patch-1
Juriy Zaytsev [Sun, 12 May 2013 21:14:05 +0000 (14:14 -0700)]
Merge pull request #57 from sindresorhus/patch-1

NPM package doesn't work since `dist` folder is ignored

11 years agoNPM package doesn't work since `dist` folder is ignored
Sindre Sorhus [Sun, 12 May 2013 20:49:43 +0000 (23:49 +0300)]
NPM package doesn't work since `dist` folder is ignored

and `main` was changed to the `dist` folder

11 years agoVersion 0.5.1
kangax [Sun, 12 May 2013 17:17:50 +0000 (13:17 -0400)]
Version 0.5.1

11 years agoUpdate distribution file
kangax [Sun, 12 May 2013 17:09:42 +0000 (13:09 -0400)]
Update distribution file

11 years agoMenu is no longer deprecated in HTML5. Closes #23
kangax [Sat, 11 May 2013 19:12:41 +0000 (15:12 -0400)]
Menu is no longer deprecated in HTML5. Closes #23

11 years agoAdd another test
kangax [Sat, 11 May 2013 19:12:01 +0000 (15:12 -0400)]
Add another test

11 years agoAdd more tests
kangax [Sat, 11 May 2013 19:09:33 +0000 (15:09 -0400)]
Add more tests

11 years agoAdd more tests based on issues reported by users
kangax [Sat, 11 May 2013 19:08:05 +0000 (15:08 -0400)]
Add more tests based on issues reported by users

11 years agoMake parser ignore block elements in inline elements (allowed in HTML5, not HTML4...
kangax [Sat, 11 May 2013 19:05:42 +0000 (15:05 -0400)]
Make parser ignore block elements in inline elements (allowed in HTML5, not HTML4). Closes #51. Closes #52. Closes #54.

11 years agoMerge pull request #50 from cometcult/prefix_fix_close
Juriy Zaytsev [Sat, 11 May 2013 18:56:13 +0000 (11:56 -0700)]
Merge pull request #50 from cometcult/prefix_fix_close

Fix minifier issue with prefixed tags (closing)

11 years agoFix minifier issue with prefixed tags (closing)
Even André Fiskvik [Thu, 18 Apr 2013 09:43:53 +0000 (11:43 +0200)]
Fix minifier issue with prefixed tags (closing)

11 years agoMerge pull request #43 from willfarrell/gh-pages
Juriy Zaytsev [Mon, 8 Apr 2013 08:16:22 +0000 (01:16 -0700)]
Merge pull request #43 from willfarrell/gh-pages

Smarter collapseWhitespace - preserver space around inline tags

11 years agoSmarter collapseWhitespace - preserver space around inline tags
will Farrell [Mon, 8 Apr 2013 00:34:49 +0000 (20:34 -0400)]
Smarter collapseWhitespace - preserver space around inline tags

11 years agoMerge pull request #42 from sindresorhus/patch-1
Juriy Zaytsev [Sun, 7 Apr 2013 23:41:59 +0000 (16:41 -0700)]
Merge pull request #42 from sindresorhus/patch-1

npmignore unneeded files

11 years agonpmignore unneeded files
Sindre Sorhus [Sun, 7 Apr 2013 23:31:45 +0000 (02:31 +0300)]
npmignore unneeded files

11 years agoLint minifier, linter via JSHint
kangax [Wed, 3 Apr 2013 12:13:17 +0000 (14:13 +0200)]
Lint minifier, linter via JSHint

11 years agoCorrect package.json
kangax [Tue, 2 Apr 2013 12:44:39 +0000 (14:44 +0200)]
Correct package.json

11 years agoUpdate license, fix package.json
kangax [Tue, 2 Apr 2013 12:35:20 +0000 (14:35 +0200)]
Update license, fix package.json

11 years agoAdd lint tests
kangax [Tue, 2 Apr 2013 12:29:38 +0000 (14:29 +0200)]
Add lint tests

11 years agoAdd .gitignore
kangax [Tue, 2 Apr 2013 12:23:58 +0000 (14:23 +0200)]
Add .gitignore

11 years agoSet up travis hook
kangax [Tue, 2 Apr 2013 12:23:19 +0000 (14:23 +0200)]
Set up travis hook

11 years agoUpdate license
kangax [Tue, 2 Apr 2013 12:23:12 +0000 (14:23 +0200)]
Update license

11 years agoPort tests to run on node, add dist/all.js
kangax [Tue, 2 Apr 2013 12:22:52 +0000 (14:22 +0200)]
Port tests to run on node, add dist/all.js

11 years agoMerge pull request #38 from willfarrell/gh-pages
Juriy Zaytsev [Tue, 2 Apr 2013 11:52:25 +0000 (04:52 -0700)]
Merge pull request #38 from willfarrell/gh-pages

IE Bug Fix

11 years agoIE Bug Fix
will Farrell [Tue, 2 Apr 2013 11:47:58 +0000 (08:47 -0300)]
IE Bug Fix

Bug fix related tohttps://github.com/gruntjs/grunt-contrib-htmlmin/issues/13#issuecomment-15769874

11 years agoMerge pull request #37 from sohira/fix-prefix
Juriy Zaytsev [Sun, 10 Mar 2013 20:30:03 +0000 (13:30 -0700)]
Merge pull request #37 from sohira/fix-prefix

Fix prefix in element

11 years agoFix prefix in element
Shinya Ohira [Sat, 9 Mar 2013 17:29:06 +0000 (02:29 +0900)]
Fix prefix in element

12 years agoMerge pull request #30 from stereobooster/gh-pages
Juriy Zaytsev [Tue, 22 May 2012 09:53:51 +0000 (02:53 -0700)]
Merge pull request #30 from stereobooster/gh-pages

Update qunit.

12 years agouse this instead of window
slavic [Mon, 21 May 2012 23:11:32 +0000 (02:11 +0300)]
use this instead of window

12 years agoupdate qunit
slavic [Mon, 21 May 2012 23:10:25 +0000 (02:10 +0300)]
update qunit

12 years agoMerge pull request #29 from stereobooster/gh-pages
Juriy Zaytsev [Mon, 14 May 2012 10:50:58 +0000 (03:50 -0700)]
Merge pull request #29 from stereobooster/gh-pages

Improvements to CommonJS support.

12 years agomove tests to external files, so they can be launched on the server-side
stereobooster [Mon, 14 May 2012 08:10:36 +0000 (11:10 +0300)]
move tests to external files, so they can be launched on the server-side

12 years agoexports does not contain console object
slavic [Thu, 10 May 2012 20:20:04 +0000 (23:20 +0300)]
exports does not contain console object