From 3c65015ef4ded814198398d3db67dd15d1eeade4 Mon Sep 17 00:00:00 2001 From: Duncan Beevers Date: Tue, 2 Sep 2014 08:28:24 -0500 Subject: [PATCH] Test preservation of script element with src attr --- tests/minifier.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/minifier.js b/tests/minifier.js index ccb28df..4fb85d0 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -681,6 +681,11 @@ input = '

'; output = ''; equal(minify(input, { removeEmptyElements: true }), output); + + input = ''; + equal(minify(input, { removeEmptyElements: true }), input); + input = ''; + equal(minify(input, { removeEmptyElements: true }), ''); }); test('collapsing boolean attributes', function() { -- 2.34.1