Merge pull request #867 from sveltejs/gh-866

do not use self-closing tags in .innerHTML
pull/870/head
Rich Harris 7 years ago committed by GitHub
commit 54d9e05f27

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

Loading…
Cancel
Save