From f1803d5443a83a64d169af542e9124d55f105952 Mon Sep 17 00:00:00 2001 From: Emil Bay Date: Tue, 13 Jun 2017 11:31:05 +0200 Subject: [PATCH] Failing test case for close/self-closing svg elements --- test/svg.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/svg.js b/test/svg.js index 1ee0fa1..e7f515b 100644 --- a/test/svg.js +++ b/test/svg.js @@ -19,3 +19,28 @@ test('svg mixed with html', function (t) { t.equal(vdom.create(tree).toString(), expected) t.end() }) + +test('svg mixed with html and close / self-closing tags', function (t) { + var expected = `
+

test

+ + + + + + + +
` + var tree = hx`
+

test

+ + + + + + + +
` + t.equal(vdom.create(tree).toString(), expected) + t.end() +})