Categories
Web Development

You want XHTML, you want XML declaration, forget about IE

Pulling your own hair leads to no good, right? Wrong. Especially if you are trying to create a CSS-positioning and layout based page, IE will throw a curve-ball that will ruin your layout, just because you put the xml declaration.

Share

So I am creating a vigorously XHTML-Strict compliant layout in template we are providing to a client who is very standards minded. A very good thing, really.
When you validate your XHTML using any of the sites dedicated to that, they all want to know it is an XML file and as such, also would love to know what encoding you are using.
To solve the aforementioned issue, a normal person would add the line:

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

If you do that, a lot of your layout in Internet Explorer 6, will be messed up. Font sizes will be ignored, layout will be ugly, and you will start looking and looking, pulling your hair.

Makes sense, right? No.

At least the beast is aware of it.

Share

Leave a Reply

Your email address will not be published.

 

Share