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


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,


and more generally

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC