W3C home > Mailing lists > Public > www-validator@w3.org > November 2007

Re: [Bug] "HTML 4.01 Strict" doctype check

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 9 Nov 2007 21:04:12 +0200
Message-ID: <021e01c82303$5269ab30$0300000a@DOCENDO>
To: <lecotegougdelaforce@free.fr>
Cc: <www-validator@w3.org>

olivier Thereaux wrote:

> On Nov 7, 2007, at 14:08 , Goulven Guillard wrote:
>> So, here it is : when validating a strict html 4.01 webpage with the
>> validator "doctype" field set to "autodetect", the validation works
>> fine. However, when trying to validate the same webpage with this
>> field
>> set to "HTML 4.01 Strict", you get a "doctype overwrite" issue
>
> I don't think there is any issue.

I think there is: the report says that HTML 4.01 Strict was overridden by 
HTML 4.01 Strict and incorrectly claims that the document is not valid ("the 
document will not be Valid until...").

> This is the expected and documented
> behavior when you use doctype override:

It is not intuitively expectable, no matter how documented it is.

I can see two ways to proceed:

a) Modify the documentation to say that the DOCTYPE _may_ have been 
overriden and that the document _might_ not be valid until...

b) Change the code to check whether the document type specified in the 
DOCTYPE matches the one selected from the menu, and suppress the warning and 
related information when they match.

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/ 
Received on Friday, 9 November 2007 19:02:08 GMT

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