minimize
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -130,3 +130,3 @@ 'use strict'; | ||
// | ||
allowed = list.attributes[key]; | ||
allowed = Object.hasOwnProperty.call(list.attributes, key) && list.attributes[key]; | ||
allowed = allowed | ||
@@ -133,0 +133,0 @@ ? allowed === '*' || ~allowed.indexOf(name) |
{ | ||
"name": "minimize", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Minimize HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/minimize", |
@@ -151,2 +151,7 @@ /*global beforeEach, afterEach*/ | ||
}); | ||
it('should check if the attribute is actually a defined property', function () { | ||
html.block.attribs = { 'constructor': 'something' }; | ||
expect(helpers.attributes(html.block)).to.be.equal(' constructor=something'); | ||
}) | ||
}); | ||
@@ -153,0 +158,0 @@ |
81760
1658