5 ms·
Ahem ;) https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#optional-tags https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#op... "An li element'
by dogecoinbase 8y ago
Ahem ;) https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#optional-tags https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html#op...
"An li element's end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element."
- wongarsu 8y agoI know that makes sense, but it feels unsettling and wrong. Where are the good old times of proper XHTML.
- tannhaeuser 8y agoThey've been superseeded by the even older and better times of SGML ;)
- dannypgh 8y agoHTML and XHTML are different things, and you can have proper documents in either. HTML is a subset of SGML. XML is designed for machines to read and write. SGML, humans. It's like the difference between JSON and Markdown. (Addendum: TIL HTML5 is not parseable as SGML. Because, reasons.)
- marktangotango 8y agoAccording to Firefox, chrome and amusingly not IEs xmlserializers, xhtml tags are case insensitive. The scars oh the scars..:
- bzbarsky 8y agoIf you send XHTML with the XHTML MIME type, the tags are case-sensitive. If you send it as "text/html"... well, then presumably you're relying on XHTML 1.0 Appendix C and letting browsers parse your XHTML as HTML. And HTML is case-insensitive.