8 ms·
From the article: “It is not, and has never been, valid HTML to write `<br></br>`.” Sure, but note that it is perfectly valid XHTML (which is a form of HTML).
by mathias 13y ago
From the article:
“It is not, and has never been, valid HTML to write `<br></br>`.”
Sure, but note that it is perfectly valid XHTML (which is a form of HTML).
Oh, and `<script src="foo" />` actually works the way you’d expect it to in XHTML.
Don’t use XHTML though.
- __david__ 13y ago> Don’t use XHTML though. Unless you want to combine it with SVG for a hybrid site [1]. [1] view source on http://emacsformacosx.com http://emacsformacosx.com
- TheZenPsycho 13y agonot necessary. html5 permits inline svg and in <img src=>. And unlike the XML hybrid document stuff, it actually works in real browsers.
- __david__ 13y ago> And unlike the XML hybrid document stuff, it actually works in real browsers. You are saying that XML hybrid document stuff doesn't work in "real" browsers? Do IE, Firefox, Safari, Chrome and Opera not count as "real"?
- TheZenPsycho 13y agothey count as real. and if that counts as working, then they don't work, full stop.
- __david__ 13y agoWhat? Sorry, I'm not parsing that at all. Just to be clear, I'm saying the hybrid XHTML/SVG works just fine in all major browsers.
- TheZenPsycho 13y agoand I'm saying: if THAT is what you call "works just fine", then the whole concept of a hybrid document is broken and it's great that we've abandoned it.
- __david__ 13y agoWhy? How is it different from your suggestion of inlining SVG in an HTML5 document?
- TheZenPsycho 13y agoxhtml is the nazi party of the web. obsessed with purity, unwilling to mix with the unclean documents, and soundly defeated by history. That's right, I just Godwin'd you.
- __david__ 13y agoSo really, you have no argument, except for a distaste of XHTML. Gotcha. It seems better to mix that with SVG than HTML5, since SVG happens to also be XML based. Otherwise you have a impedance mismatch leading to some weird corner cases.
- TheZenPsycho 13y agomy argument is that you might be able to make it work through a lot of effort but you can't actually use it in the real world so it's worse than worthless.
- stan_rogers 13y agoXHTML is not a form of HTML; it's a dialect of XML that bears a strong surface resemblance (but only a surface resemblance) to HTML.