Re: For review: Character encodings in HTML and CSS

Richard Ishida, Tue, 9 Feb 2010 13:20:29 -0000:
> See http://www.w3.org/International/tutorials/tutorial-char-enc/temp

]] On the other hand, you should be aware that this could cause 
rendering issues for at least some of your users when browsers treat 
the page as HTML. For example, it causes Internet Explorer 6 to render 
the page in quirks mode. [[

IE6 is the only user agent known to have trouble with the xml
declaration - is it not?. Hence I suggest to focus firmly on  
IE6 instead of blurring the picture by saying "for example IE6".
To say "for example IE6" hints that there are even more user 
agents that have trouble with this.

I've tested this myself, and in case the only whitespace character
between the "<?xml" start tag and the _first_ appearing attribute
of the XML declaration is a line break, like  this:

<?xml
encoding="utf-8" version="1.0! ?>

then even IE7 and IE8 triggers quirksmode. However, I think that this 
small - a - quirk is not enough to in general warn against using the 
xml declaration together with IE7 and IE8.
-- 
leif halvard silli

Received on Saturday, 20 February 2010 01:34:21 UTC