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

Re: Case-sensitive doctype-tag?

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 19 Sep 2003 23:24:44 +0300 (EEST)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0309192315020.9610@korppi.cs.tut.fi>

On Fri, 19 Sep 2003, Unym Anym wrote:

> <!doctype html public "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> instead of the above doctype gets only "This Page Is
> Valid!"

And writing DOCTYPE and PUBLIC in upper case gives

This Page Is Valid -//W3C//DTD HTML 4.01 Strict//EN!

The validator is very confused. It tries to extract some identification of
the "HTML version", which is a worse than pointless attempt anyway,
and its heuristics (i.e., guesswork) around this seems to give very
strange results.

What a validator should do is to report whether the document is valid,
i.e. complies with a DTD, and if not, report the violations of the DTD.
Validity is defined in terms of a DTD, not any "version" or identifier.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 19 September 2003 16:24:46 GMT

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