W3C home > Mailing lists > Public > www-validator-css@w3.org > February 2009

Re: About XML declaration Re: To fix syntax errors of HTML files

From: olivier Thereaux <ot@w3.org>
Date: Thu, 5 Feb 2009 09:32:09 -0500
Cc: css-validator <www-validator-css@w3.org>
Message-Id: <AC4C2C13-2AE9-4993-9818-7E55ADFD4EFF@w3.org>
To: TAKAHASHI Makoto <hobbit_mak@yahoo.co.jp>

On 5-Feb-09, at 1:35 AM, TAKAHASHI Makoto wrote:
> http://www.w3.org/TR/xhtml1/#normative
> says
>> An XML declaration is not required in all XML documents;
>> however XHTML document authors are strongly encouraged to
>> use XML declarations in all their documents. Such a
> declaration is required when the character encoding of the
> document is other than the default UTF-8

We use UTF-8 and try to follow the compatibility guidelines described  

DO NOT include XML processing instructions NOR the XML declaration.

Rationale: Some HTML user agents render XML processing instructions.  
Also, some user agents interpret the XML declaration to mean that the  
document is unrecognized XML rather than HTML. Such user agents may  
not render the document as expected. For compatibility with these  
types of HTML browsers, you should avoid using processing instructions  
and XML declarations.

> And your DOWNLOAD.html.en about.html.en, ... include XML declarations.

True. I tried to hunt down a few just now, and removed them.

Received on Thursday, 5 February 2009 14:32:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:45 UTC