diff options
Diffstat (limited to 'test/html/simplify.tests.js')
| -rw-r--r-- | test/html/simplify.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/html/simplify.tests.js b/test/html/simplify.tests.js index 85d2eb9..d9ab73a 100644 --- a/test/html/simplify.tests.js +++ b/test/html/simplify.tests.js @@ -37,6 +37,13 @@ test("empty children of element are removed", function() { ); }); +test("empty void elements are not removed", function() { + assert.deepEqual( + simplifyNode(nonFreshElement("br", {}, [])), + [nonFreshElement("br", {}, [])] + ); +}); + test("successive fresh elements are not collapsed", function() { var path = htmlPaths.elements([ htmlPaths.element("p", {}, {fresh: true}) |
