Skip to content

Commit

Permalink
Merge pull request #867 from sveltejs/gh-866
Browse files Browse the repository at this point in the history
do not use self-closing tags in .innerHTML
  • Loading branch information
Rich-Harris authored Sep 23, 2017
2 parents 54bbeea + 0a7e618 commit 54d9e05
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/generators/dom/visitors/Element/Element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}>`;
}
Expand Down

0 comments on commit 54d9e05

Please sign in to comment.