[Thunar-dev] thunar.xfce.org and IE / IE7

Brian J. Tarricone bjt23 at cornell.edu
Mon Feb 13 16:39:21 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sofar wrote:
> 
> On Mon, 13 Feb 2006 11:41:56 +0100, Benedikt Meurer <benedikt.meurer at unix-ag.uni-siegen.de> wrote:
>> Jari Rahkonen wrote:
>>> IE might also choke on the multiple content type declarations in the
>>> page header, but I rather doubt it. Anyway, it wouldn't do any harm to
>>> use .xml or .html as the extension (and/or remove the extra content type
>>> declaration). Not that I personally care about IE or even see myself
>>> using it in the foreseeable future.
>> Maybe Auke could add the work-around to httpd.conf, as IIRC Nick's new
>> Xfce website also uses .xhtml extensions.
> 
> it doesn't - it purely uses .php - otherwise I would have spotted this already.

Here's an easy little PHP snippet to make sure you're sending the
"right" content type:

if(preg_match("/application\/xhtml\+xml/", $_SERVER['HTTP_ACCEPT']) > 0)
    header("Content-Type: application/xhtml+xml; charset=utf-8");
else
    header("Content-Type: text/html; charset=utf-8");

Modify charset as required, of course.  If you really want to go nuts,
you can match on text/xml, application/xml, and maybe even text/xhtml
and application/xhtml, bbut application/xhtml+xml should work where it
needs to.

Also, here's a cute compliance hack to make IE5/6 behave properly with
all kinds of CSS:
http://dean.edwards.name/IE7/intro/
It's basically a set of javascript handlers that override IE's behaviors
when it does stuff wrong.  Works very well, and you can conditionally
include it so it doesn't slow down page renders on non-IE browsers.
Yeah, I don't care all that much about IE either, but it can't hurt to
add support for it when all it involves is unzipping a file and adding a
couple lines to your html header.  There's no need to be snobbish about
it, even if IE is a piece of shit and isn't worthy of viewing Thunar's
website properly.

	-brian


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD8Kgo6XyW6VEeAnsRAl7DAKCwvWYN3I4XxoSp6urdPh+amSn0gACfcpg/
1fwY44nAFxkij81/OW96xW8=
=HfL/
-----END PGP SIGNATURE-----



More information about the Thunar-dev mailing list