Add an option to keep closing slash in singleton tags
authorNikola Kotur <kotnick@gmail.com>
Thu, 13 Feb 2014 23:14:59 +0000 (00:14 +0100)
committerNikola Kotur <kotnick@gmail.com>
Thu, 13 Feb 2014 23:18:41 +0000 (00:18 +0100)
commit2f03f301e876421ca08facbc9be9606117d3f7a4
tree847e8c7d8c5819d0622213bd7cb72df93623e096
parent4a3852092d7c072465a60fa28eb83350926d149b
Add an option to keep closing slash in singleton tags

If ``keepClosingSlash`` is set to ``true`` in options, closing singleton slash
will be preserved. This is important for HTML5 being minified, since in HTML5
closing slash is not optional and affects the DOM significantly.

Closes #76.
dist/all.js
dist/all.min.js
src/htmlminifier.js
src/htmlparser.js
tests/minifier.js