

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

From: Robin Haswell <rob@bronco.co.uk>
Date: Wed, 9 Feb 2005 10:23:31 -0000
To: <html-tidy@w3.org>
Message-ID: <E1Cyp0o-000404-SY@frink.w3.org>

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".

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.

-Robin Haswell
Received on Wednesday, 9 February 2005 14:21:55 GMT
