Open matthew-puku opened 2 weeks ago
@rdimartino what do you think about this suggestion? Since you made some changes to the void-tags.
According to erb_lint
they consider self-closing void elements to be XHTML
style and writing them without self-closing as HTML5
style which I think is what modern browsers are targeting.
@davidwessman I think that I used self-closing tags in #73 to match how prettier formats HTML in my project, but I have come to believe that they're doing it wrong. I think this plugin should still be able to parse self-closing tags, but I support formatting the void elements as suggested here.
Hey there,
This project is awesome!
Proposal
I wondered if it'd be worthwhile to make void elements not self-closing.
For example,
<br>
s might output as:Currently, the output looks like this:
But why?
erb_lint
considers the current style a violation by default.