Monday, December 19, 2005

<?xml version="1.0" encoding="UTF-8"?>

This one little line, which should get included at the top of the XHTML page, completely fucks IE's interpretation of CSS. Not necessarily required, so out it goes even thought everyone else plays fine with it...

Labels: ,

4 Comments:

Anonymous Wiktor said...

Do you mean this?

"In Explorer 6 Windows, Microsoft implemented one extra rule: if a doctype that triggers strict mode is preceded by an xml prolog, the page shows in quirks mode. This was done to allow web developers to achieve valid pages (which require a doctype) but nonetheless stay in quirks mode."

Quoted from Quirksmode.org

http://www.quirksmode.org/css/quirksmode.html

10:34 AM  
Blogger The Hater said...

Yeah, that.

Fuckers.

Might as well make it display in quirks mode every Thursday, except during a full moon, for all the sense that makes.

11:46 PM  
Anonymous Basty said...

Is there a workaround for this fucking case? Sure, i can remove the "...?xml version="1.0" encoding="utf-8"..." line, but that is a foolish solution! IE Sucks!

12:52 PM  
Anonymous Kevin said...

I'm serving up dynamic content with .xml for a client. When I set the XML doctype to utf-8 IE chokes and can't display the parsed XHTML. When the doctype is set to encoding="iso-8859-1" IE behaves well.

Any ideas or links to the way IE treats XML documents?

I'm using jQuery to parse this XML document into valid XHTML.

8:19 AM  

Post a Comment

Links to this post:

Create a Link

<< Home