Previous Message
Next Message

I won an award...and site check please

Sent by Lars Holst on 29 September 2003 12:12


Hello Sebastien,

This is not strictly on topic, but not strictly off either. The xml prolog
affects how style sheets are treated in IE and possibly other browsers. The
resulting behavior in IE is known as "quirks mode", and means that your css
may not be rendered as expected. AFAIK, the xml prolog only works safely in
Moz and Opera.

Therefore, most people will tell you to leave it out.

However, IF you are sending your xhtml documents as application/xhtml+xml to
understanding browsers (many people will argue that you should) AND if you
are using character encodings other than UTF-8, then you MAY wish to also
send the xml prolog to those browsers.

As these posts from Anne van Kesteren show, you can have it both ways if you
are using php:

<http://www.annevankesteren.nl/archives/2003/09/20/send-applicationxhtmlxml>
<http://www.annevankesteren.nl/archives/2003/09/22/adding-markup-1>

With some minor tweaking of the php script suggested by Anne, you can send
the xml prolog to browsers that like it, and use the meta tag for those that
don't (including IE).

Feel free to email me offlist if you're interested in the script.

/Lars

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: