W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2005

Re: HTML Tidy warning re XML decl., cleaned source breaks IE

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 09 Feb 2005 15:43:11 +0100
To: "Robin Haswell" <rob@bronco.co.uk>
Cc: <html-tidy@w3.org>
Message-ID: <423a208d.317407015@smtp.bjoern.hoehrmann.de>

* Robin Haswell wrote:
>HTML Tidy gives the following warning when an XML Declaration follows a DTD:
>
>line 3 column 1 - Warning: removing whitespace preceding XML Declaration
>
>However placing the XML Declaration before the XHTML DTD causes Internet
>Explorer to render in "Quirks mode".

Encode your document using UTF-8, declare the encoding in the HTTP
header and remove the XML declaration, refer to

  http://www.w3.org/International/articles/serving-xhtml/

and the referenced documents for details.

>The W3C Validator does not invalidate an XML Declaration following an XHTML
>DTD. I suggest bringing HTML Tidy in line with the W3CV, mainly to avoid
>this annoying warning.

That's a known bug in the Validator,

  http://www.w3.org/Bugs/Public/show_bug.cgi?id=12
  http://www.w3.org/Bugs/Public/show_bug.cgi?id=200

and more generally

  http://openjade.sourceforge.net/doc/xml.htm
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 9 February 2005 14:43:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:55 GMT