Re: Will not accept DOCTYPE statement

"Jukka K. Korpela" <[email protected]>
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.