Comparing version 1.7.0 to 1.7.1
@@ -28,3 +28,4 @@ // | ||
'default', 'ismap', 'novalidate', 'open', 'typemustmatch', 'truespeed', | ||
'itemscope', 'autocomplete', 'download' | ||
'itemscope', 'autocomplete', 'download', 'draggable', 'novalidate', | ||
'sortable', 'spellcheck' | ||
]; | ||
@@ -159,3 +160,7 @@ | ||
'autosave': 'input', | ||
'bgcolor': ['body', 'col', 'colgroup', 'marquee', 'table', 'tbody', 'tfoot', 'td', 'th', 'tr'] | ||
'bgcolor': ['body', 'col', 'colgroup', 'marquee', 'table', 'tbody', 'tfoot', 'td', 'th', 'tr'], | ||
'draggable': '*', | ||
'novalidate': ['form'], | ||
'sortable': ['table'], | ||
'spellcheck': '*' | ||
}; |
{ | ||
"name": "minimize", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Minimize HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/minimize", |
@@ -16,4 +16,4 @@ # HTML minifier | ||
**Minimize does not parse inline PHP or raw template files. Templates are not valid | ||
HTML and this is outside the scope of the minimiz. The _output_ of the | ||
**Minimize does not parse inline PHP or raw template files. Templates are not valid | ||
HTML and this is outside the scope of the minimize. The _output_ of the | ||
templaters should be parsed and minified.** | ||
@@ -20,0 +20,0 @@ |
@@ -65,3 +65,3 @@ /*global beforeEach, afterEach*/ | ||
it('maps attributes to elements', function () { | ||
expect(Object.keys(list.attributes).length).to.equal(113); | ||
expect(Object.keys(list.attributes).length).to.equal(114); | ||
expect(list.attributes.high).to.be.an('string'); | ||
@@ -68,0 +68,0 @@ expect(list.attributes.high).to.equal('meter'); |
@@ -271,3 +271,3 @@ 'use strict'; | ||
it('should retain values on spare attributes', function (done) { | ||
it('should retain values on semi-boolean attributes', function (done) { | ||
minimize.parse('<input autocomplete="off">', function (error, result) { | ||
@@ -279,2 +279,9 @@ expect(result).to.equal('<input autocomplete=off>'); | ||
it('should remove values from boolean attributes', function (done) { | ||
minimize.parse('<input disabled="true">', function (error, result) { | ||
expect(result).to.equal('<input disabled>'); | ||
done(); | ||
}); | ||
}); | ||
it('should remove CDATA from scripts', function (done) { | ||
@@ -281,0 +288,0 @@ minimize.parse(html.cdata, function (error, result) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81319
1651