Go to content Go to navigation

XHTML and broken browsers

Some weeks ago, I announced that my personal web page was featuring some RDFa. Some folks made me notice that since then, they have been unable to view my web page with Internet Explorer. Of course, the problem isn't RDFa, it's Internet Explorer. My web page is served with the MIME type 'application/xhtml+xml', as W3C recommends for XHTML documents. However, Internet Explorer doesn't like this MIME type (read the rationale from Chris Wilson). As there are some people that still use IE, I considered some workarounds like this one from the W3C (thank you for the pointer, Manrique). At the end, I made a dirty hack that introduces some logic to choose a different MIME type depending on the "user agent" header. It stinks, I know, but don't blame me or RDFa!