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:
7151116
)
Test preservation of script element with src attr
author
Duncan Beevers
<duncan@dweebd.com>
Tue, 2 Sep 2014 13:28:24 +0000
(08:28 -0500)
committer
Duncan Beevers
<duncan@dweebd.com>
Tue, 2 Sep 2014 13:28:24 +0000
(08:28 -0500)
tests/minifier.js
patch
|
blob
|
history
diff --git
a/tests/minifier.js
b/tests/minifier.js
index
ccb28df
..
4fb85d0
100644
(file)
--- a/
tests/minifier.js
+++ b/
tests/minifier.js
@@
-681,6
+681,11
@@
input = '<p><!-- x --></p>';
output = '';
equal(minify(input, { removeEmptyElements: true }), output);
+
+ input = '<script src="foo.js"></script>';
+ equal(minify(input, { removeEmptyElements: true }), input);
+ input = '<script></script>';
+ equal(minify(input, { removeEmptyElements: true }), '');
});
test('collapsing boolean attributes', function() {