2 ms·
An intersting detail in the HTML5 spec is that trailing slashes like in <br /> are allowed (but ignored) in the HTML serialization. This allows you to write val
by olavk 17y ago
An intersting detail in the HTML5 spec is that trailing slashes like in <br /> are allowed (but ignored) in the HTML serialization. This allows you to write valid HTML5 which is at the same time valid XML.
- rimantas 17y agoTo be fair, trailing slashes were ignored all the time. By this I mean that treated properly with MIME text/html they would produce a bunch of ">" on your page — they have different meaning in SGML from that in XML. That's one of the reasons I stuck with HTML4.01 Strict: I don't like the idea that XHTML works in browsers simply because of the miss-implementation of a standard.