Feature #61162
closedFluid HTML5 compliance
0%
Description
However it is a cosmetic change Fluid produces XHTML code with trailing slash / even in HTML5.
The trailing slash is only required for XHTML.
XHTML: <img src="..." />
HTML5: <img src="...">
Updated by Philipp Wrann about 10 years ago
And i would let it that way. XML is cleaner than SGML and html5 does not specify the img tag to be SGML so i would allways prefer the XML Syntax.
Updated by Mathias Brodala about 10 years ago
While I also would like to see this, it's going to be quite hard to implement with little benefit.
You can always register a custom implementation for the TagBuilder
if you really need this.
Updated by Alexander Schnitzler almost 10 years ago
- Status changed from New to Rejected
As HTML5 allows both types of syntax but XHTML doesn't I would simply leave it as is.
There's no disadvantage when using slashes in HTML5 so there's no benefit at all but a lot of work rewriting all view helpers and unit tests.