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

Re: Beta: Fatal Error: No DOCTYPE specified!

From: Bertilo Wennergren <bertilow@gmx.net>
Date: Fri, 25 Oct 2002 09:42:31 +0200
Message-ID: <3DB8F5E7.8050509@gmx.net>
To: W3C Validator <www-validator@w3.org>

Terje Bless:

> Bjoern Hoehrmann <derhoermi@gmx.net> wrote:

>>4) The phrase talks about a "first line", while the document type
>>declaration in the example takes two lines

> Pedant! :-)

> Yeah, thanks, good catch! I'll fix it ASAP. How does "At the very beginning
> of your document" sound to you?

Well, maybe I missed some important context here, but the DOCTYPE
declaration does not and should not appear at the first line, nor at the
very beginning of an XHTML document that includes an XML declaration.
(Someone should have told the Microsoft programmers that...)

>>5) The example should (as per XHTML 1.0) include a XML declaration

> The XML Declaration is problematic in that current browsers (FSVO
> "current") tend to do undesireable things when faced with one;

True.

> and XHTML
> 1.0 also reccomends against including one in "Appendix C" documents.

Does it?

  XHTML document authors are strongly encouraged to use XML declarations
  in all their documents
  (http://www.w3.org/TR/xhtml1/)

In Appendix C we find this:

  For compatibility with these types of legacy browsers, you may want to
  avoid using processing instructions and XML declarations.

"May want to avoid" is not a recommendation against including,
especially in the light of the first quotation.

-- 
Bertilo Wennergren <bertilow@gmx.net> <http://www.bertilow.com>
Received on Friday, 25 October 2002 03:39:57 GMT

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