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

* 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 UTC