Description
Describe the solution you'd like
The tag-self-close
rule, when true, requires empty tags to be self-closed. When false, this rule does not apply.
I would like an option to require tags not to be self-closed. <br/>
should always be typed as <br>
, <hr />
as <hr>
, no self-closing tags for meta
, link
, ect.
With HTML5 as a standard for the last four years, and self-closing tags being optional in the spec, I feel this is practical to enforce consistent markup.
Describe alternatives you've considered
Simply using "tag-self-close": false
does not enforce not having closing tags. I've seen numerous code samples that use a mix of self-closed and unclosed tags, which I feel to be sloppy.
Additional context
HTML5 self-closing tags are optional.
If this feature request is approved, all void elements (link
, meta
, hr
, br
, ect) should be able to have no-self-closing enforced on them.
There may need to be an exception for foreign elements such as svg-related tags.