public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeaadd6
)
Test `removeEmptyAttributes` on IMG element (should not remove "src" and "alt" attrib...
author
Juriy Zaytsev
<kangax@gmail.com>
Thu, 25 Feb 2010 22:08:45 +0000
(17:08 -0500)
committer
Juriy Zaytsev
<kangax@gmail.com>
Thu, 25 Feb 2010 22:08:45 +0000
(17:08 -0500)
tests/index.html
patch
|
blob
|
history
diff --git
a/tests/index.html
b/tests/index.html
index
593936b
..
90c8f6c
100644
(file)
--- a/
tests/index.html
+++ b/
tests/index.html
@@
-160,6
+160,9
@@
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(){