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

Re: Beta: Fatal Error: No DOCTYPE specified!

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 31 Oct 2002 13:26:35 +0000 (GMT)
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: W3C Validator <www-validator@w3.org>
Message-ID: <Pine.LNX.4.21.0210311323330.12859-100000@dhalsim.dreamhost.com>

On Thu, 31 Oct 2002, Bjoern Hoehrmann wrote:
>>> 
>>> Let me repeat:
>>> 
>>>   if element html has attribute xmlns='http://www.w3.org/1999/xhtml'
>>>     default to XHTML 1.0 Transitional
>>>   else
>>>     default to HTML 4.01 Transitional
>>
>> No offense, but that is _hopelessly_ naiive.
> 
> I don't think so...

So how would you implement it?


>> Furthermore, the HTML working group has stated that user agents (and
>> the validator is a user agent) should not attempt to detect XHTML in
>> text/html documents.
> 
> You don't suggest to adhere to this statement and thus treat XHTML
> documents as if they were HTML documents, do you?

That would be ideal, yes. At the moment, that the validator tries to
autodetect XHTML sent as text/html causes it to claim certain documents
are invalid even when they are technically correct. See:

   http://lists.w3.org/Archives/Public/www-validator/2002Oct/0082.html

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 31 October 2002 08:26:36 GMT

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