4 ms·
> xhtml was never supported by all major browsers. Source? https://caniuse.com/xhtml https://caniuse.com/xhtml says otherwise > You couldn't do stuff like <di
by progval 5y ago
> xhtml was never supported by all major browsers.
Source? https://caniuse.com/xhtml https://caniuse.com/xhtml says otherwise
> You couldn't do stuff like <div/> and get away with it.
I just tried on both Firefox and Chromium, they parse it properly.
- jontro 5y agoWhen xhtml was popular internet explorer was a major blocker for using it properly. I never saw xhtml served with the proper content type at the time. I don't see a reason to mix html and xhtml today. It will only lead to problems. (I.e using self-closing tags and & mismatches in urls) If you use <div/> in html the browser will just ignore the end / See https://jsfiddle.net/sw8j9fo2/ https://jsfiddle.net/sw8j9fo2/
- deleted 5y ago[deleted]