Closed jrmajor closed 2 months ago
Latest commit: 41a8af0d685a156fcad2024b2f25773b81c4218c
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR adds separate configuration option for foreign (SVG and MathML) elements to
svelte/html-self-closing
rule.According to HTML spec (https://html.spec.whatwg.org/multipage/syntax.html#elements-2):
This means that
<div/>
is invalid, while<path/>
(which is a SVG element) is OK. This configuration option would allow users to take advantage of the terser SVG syntax, while still using correct HTML syntax for normal elements (likediv
).Closes #837.