From 0a7e6183fd89477473cafdaab4af3afb55bdb9ab Mon Sep 17 00:00:00 2001 From: Conduitry Date: Thu, 21 Sep 2017 10:06:27 -0400 Subject: [PATCH] do not use self-closing tags in .innerHTML (#866) --- src/generators/dom/visitors/Element/Element.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/generators/dom/visitors/Element/Element.ts b/src/generators/dom/visitors/Element/Element.ts index 8b42d40a18..ccb6ec64ae 100644 --- a/src/generators/dom/visitors/Element/Element.ts +++ b/src/generators/dom/visitors/Element/Element.ts @@ -252,7 +252,6 @@ export default function visitElement( }); if (isVoidElementName(node.name)) return open + '>'; - if (node.children.length === 0) return open + '/>'; return `${open}>${node.children.map(toHTML).join('')}`; }