W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Over-eager detection of XHTML

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 23 Oct 2002 20:20:41 +0000 (GMT)
To: Olivier Thereaux <ot@w3.org>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <Pine.LNX.4.21.0210232014150.29501-100000@dhalsim.dreamhost.com>

On Wed, 23 Oct 2002, Olivier Thereaux wrote:
> 
> After about a year of saying "Real Soon Now[tm]", a new version of the
> W3C MarkUp Validation Service is now available for testing.
> 
>                     <URL:http://validator.w3.org:8001/>

The following document:

   http://www.damowmow.com/playground/html-not-xml-2.html

...is a valid HTML 4.01 document. However, with the new validator, I get
the following error message:

| This Page Is NOT Valid XHTML 1.0 Strict!
|
| Below are the results of attempting to parse this document with an SGML
| parser.
|
| 1. Line 2, column 7: S separator in comment declaration
|
| <!-- -- -->
|        ^

This is probably a bug in the XHTML detection code.

Furthermore, when I force it to be handled as HTML 4.01, it still gets
autodetected as XHTML.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 23 October 2002 16:20:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT