3 ms·
Does every popular browser support it in the same way? I would expect some subtle differences, because this mode is not very popular and probably not as tested
by vbezhenar 7y ago
Does every popular browser support it in the same way? I would expect some subtle differences, because this mode is not very popular and probably not as tested as standard HTML.
- Terretta 7y agoOn the contrary, part of the point of XHTML is you can reference the document type definition (DTD) so everyone would be on the same page. https://www.w3.org/wiki/Doctypes_and_markup_styles https://www.w3.org/wiki/Doctypes_and_markup_styles For example... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ... is the XHTML 1.0 equivalent of HTML 4.01 except it won't validate loose HTML style markup, it all needs to be well formed XML. That said, for HTML5 ... https://stackoverflow.com/questions/1570418/if-i-use-html-5s-doctype-what-will-happen https://stackoverflow.com/questions/1570418/if-i-use-html-5s... Ten years ago they thought that should work a while. Looks like it.
- vbezhenar 7y agoThanks, those are definitely good things. I never had much thought about it, but I definitely was bitten more than once by those auto-closing and auto-generating HTML tags, so strict XML might be a good alternative. Definitely will try it next time.
- garaetjjte 7y agoNote that XHTML must be served with application/xhtml+xml content-type.