W3C home > Mailing lists > Public > www-validator@w3.org > September 2005

Re: possible error in validator

From: Nick Kew <nick@webthing.com>
Date: Mon, 12 Sep 2005 11:35:23 +0100
To: www-validator@w3.org
Message-Id: <200509121135.26638.nick@webthing.com>

On Monday 12 September 2005 02:43, Lachlan Hunt wrote:

> No, the syntax is correct.  It is a problem with the fact that your
> serving XHTML with the wrong MIME type.  When you serve as XHTML
> document as text/html, all browsers treat it as tag soup and parse it
> like erroneous HTML 4.


As you are aware, that's not the whole story.  The joker in the pack is
Appendix C to XHTML 1.0, which permits serving it as text/html tagsoup
subject to certain guidelines that have no basis either in SGML or XML.
The validator cannot check those guidelines.  Nor should it - unless
under a heading such as "miscellaneous warnings" - since checking
the guidelines is not part of validation.

Sticking to HTML4 avoids these problems.  But if you are constrained
by your tools to publish XHTML instead, you can fix it up using
mod_xhtml to ensure Appendix C compliance in what you serve.

Nick Kew
Received on Monday, 12 September 2005 10:35:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:53 UTC