Open infograf768 opened 3 years ago
The latest HTML5 spec defines the br element as <br>
https://www.w3.org/TR/html52/textlevel-semantics.html#the-br-element
So, the issue is more like the usage of <br />
, that should be removed to avoid further confusion.
Of course, <br />
has to be removed from the coding standard as an option.
J3 will stand as xhtml compatible br (as we’ve had xhtml templates support there from early j3). From j4 should need be the html 5 br without the self closing tag
OK, used <br />
in staging as it looks like we have to keep that.
Can someone modify the standard for J4?
https://github.com/joomla/coding-standards/blob/master/manual/html.md#adding-line-breaks
afaik, it looks not necessary to use
<br />
as this is rather for xhtml.<br>
should be OK.Ref: https://www.tutorialspoint.com/What-is-the-correct-way-of-using-br-br-or-br-in-HTML
So the question is:
<br />
as a standard for 3.x<br
> generally speaking or specially for J4 as we have 9 occurences of<br />
216 occurences of<br>
@mbabker @wilsonge @HLeithner