I ran across an article by Ian Hickson in which he lays out reasons why it's bad practice to use XHTML in most cases (though not necessarily all). The Webkit blog has a post on the same thing. What's your take on this?
webkit developers said:Our browser can't cope with the XHTML MIME type! Quick! Blame someone else! We don't feel like fixing our code, we'd rather just have everyone sit in the dark and code HTML 4 and pretend nothing's wrong!
I've been reading these articles for years. I use XHTML myself most of the time. The "problems" that article mentions are lame in comparison to other articles I've read on the subject. It seems to mention them as problems because there are so many web designers out there who don't know what they're doing and so don't make their XHTML valid.
...It's a bad situation and I feel for the browser people who have to deal with tag soup, but really they shouldn't have let themselves get into this situation.
I'm not giving up my day job yet, but honestly it would be nice for all of us if we could wizard our way to site perfection, have validation and repairs be automated and we can concentrate on content, at long last.
-jim
memco said:My question is what browsers wouldn't/couldn't handle the issue? It seems like there's some panic that this mythical browser that doesn't expect XHTML pages to exist the way they do will horribly maim the entire internet. That seems pretty paranoid and unrealistic.
Source...this document is not intended to be a normative specification. Instead, it documents a set of recommendations to maximize the interoperability of XHTML documents with regard to Internet media types.
I'm good about validating my pages, so they come out as proper XHTML. The only reason I found this interesting was the way the MIME type affects how the page rendersin all likelihood even if it's proper XHTML, it's still being processed as HTML. If that's true, it seems like it might make more sense.
My question is what browsers wouldn't/couldn't handle the issue? It seems like there's some panic that this mythical browser that doesn't expect XHTML pages to exist the way they do will horribly maim the entire internet. That seems pretty paranoid and unrealistic.
Realistically, all this means is that I do a find and replace of all "/>"s in my pages. That seems kinda silly so I'm not likely to change.
IE6/7 don't support XHTML, and I write web applications where our clients are either mostly or ALL running IE6/7.
I like the idea of XHTML if for no other reason than forcing well-formed markup. As the web approaches that standard, life will get much easier for all of us developers. But until IE8 is released and widespread, I don't see the point.