Test `removeEmptyAttributes` on IMG element (should not remove "src" and "alt" attrib...
authorJuriy Zaytsev <kangax@gmail.com>
Thu, 25 Feb 2010 22:08:45 +0000 (17:08 -0500)
committerJuriy Zaytsev <kangax@gmail.com>
Thu, 25 Feb 2010 22:08:45 +0000 (17:08 -0500)
tests/index.html

index 593936b..90c8f6c 100644 (file)
           
           input = '<input value="" name="foo">';
           equals(minify(input, { removeEmptyAttributes: true }), '<input name="foo">');
+          
+          input = '<img src="" alt="">';
+          equals(minify(input, { removeEmptyAttributes: true }), '<img src="" alt="">');
         });
         
         test('cleaning attributes', function(){