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

Re: Will not accept DOCTYPE statement

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 21 Sep 2014 14:52:50 +0300
Message-ID: <541EBC12.8070703@cs.tut.fi>
To: Ray Devore <rbdevore2007@yahoo.com>, "www-validator@w3.org" <www-validator@w3.org>
2014-09-21 12:36, Philip Taylor wrote:

>> <!-- Default Geneology Page -->
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>> 		  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>
>
> Suggest removing the leading comment and blank line, and making the
> DOCTYPE directive the first line of the file.

That’s advisable indeed, but it does not affect validation. Validators 
have no problems with such a comment, as it is permitted by the syntax. 
But some old browsers (while consuming XHTML as old HTML tag soup) will 
go to Quirks Mode if the DOCTYPE string is preceded by anything.

Yucca
Received on Sunday, 21 September 2014 11:53:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:11 UTC