do not use self-closing tags in .innerHTML (#866)

pull/867/head
Conduitry 8 years ago
parent abfb2ad743
commit 0a7e6183fd

@ -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('')}</${node.name}>`;
}

Loading…
Cancel
Save