forked from ruby-syntax-tree/syntax_tree-xml
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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:
<p>
so much depends<br>
upon<br>
<br>
a red wheel<br>
barrow<br>
<br>
glazed with rain<br>
water<br>
<br>
beside the white<br>
chickens.
</p>Currently, the output looks like this:
<p>
so much depends<br />
upon<br />
<br />
a red wheel<br />
barrow<br />
<br />
glazed with rain<br />
water<br />
<br />
beside the white<br />
chickens.
</p>But why?
- Self-closing tags don't really exist in HTML.
erb_lintconsiders the current style a violation by default.- saves a few bytes over the wire?
davidwessman, spect88 and rdimartino
Metadata
Metadata
Assignees
Labels
No labels