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

Re: Over-eager detection of XHTML

From: Terje Bless <link@pobox.com>
Date: Fri, 25 Oct 2002 02:09:56 +0200
To: W3C Validator <www-validator@w3.org>
cc: Ian Hickson <ian@hixie.ch>
Message-ID: <a01060005-1021-1849776CE7AE11D6AC5400039300CF5C@[193.157.66.10]>

Ian Hickson <ian@hixie.ch> wrote:

>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.

Well, it's certainly a pathological case -- as I'm sure we've discussed
before! :-) -- but I've logged it (internal bug number #14) and will have a
look at whether there is any sane resolution to the issue. At the very
least it should be possible to force SGML semantics when a DOCTYPE override
for an SGML DOCTYPE is in effect.

Thanks for the report!

-- 
>For all I know they probably have a standard for
>which direction to put the thread on a bolt.

That would be ISO 261:1973.         -- John Cowan
Received on Thursday, 24 October 2002 20:10:08 GMT

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