diff --git a/src/generators/dom/visitors/Element/Element.ts b/src/generators/dom/visitors/Element/Element.ts index fe874790d0..6c7a307fab 100644 --- a/src/generators/dom/visitors/Element/Element.ts +++ b/src/generators/dom/visitors/Element/Element.ts @@ -253,7 +253,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('')}`; }