Re: possible error in validator

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.

[chop]

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