Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Hixie on XHTML

Ian Hickson: Sending XHTML as text/html Considered Harmful. Ian makes an excellent case for sticking with HTML 4.01 rather than upgrading to XHTML. Here’s the killer point (at least for me):

Document sent as text/html are handled as tag soup [1] by most UAs. This means that authors are not checking for validity, and thus most XHTML documents on the web now are invalid. Therefore the main advantage of using XHTML, that it has to be valid, is lost of the document is then sent as text/html.

XHTML documents that are not well-formed XML are useless, and since browsers still display them the web is potentially being polluted with invalid (and useless) XHTML documents. Ian also makes the point that, while the greatest benefit of XHTML is that it can be processed by XML parsers, the only people likely to take advantage of this ability are the content authors themselves who will most likely be using configurable tools to produce the content anyway.

So why haven’t I switched this blog back to HTML 4.01 yet? It’s a good question, and one which I will attempt to answer in the not too distant future.

This is Hixie on XHTML by Simon Willison, posted on 10th September 2002.

View blog reactions

Next: Thrown the switch

Previous: New Hosting

4 comments

  1. Is that because in the back of your mind there is a reason for not de-grading your doctype, or because it will take time to change?

    Alastair - 10th September 2002 15:18 - #

  2. Neither :) I'm working on a more technical solution.

    Simon Willison - 10th September 2002 15:27 - #

  3. I've been tackling with the idea of using font, blink and marquee tags too. That valid XHTML is useless for most people doesn't mean it shouldn't be used. It's a bit like saying that since only few fanatics are using non-IE browsers we should just take advantage of IE's proprietary additions. Here's what would be the killer Apache module to make the web a valid XHTML heaven: mod_tidy.

    michel v - 10th September 2002 20:11 - #

  4. I found what you were looking for. http://home.snafu.de/tusk/mod_tidy/

    olek - 9th January 2003 13:04 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/09/10/hixieOnXHTML

A django site