W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] Configure Apache to send the right MIME type for XHTML

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Thu, 08 Mar 2007 00:52:08 +0100
Message-ID: <op.toue86i31h6og4@localhost>
On Wed, 07 Mar 2007 22:11:15 +0100, Kornel Lesinski <kornel at osiolki.net>  
wrote:

> User-agent sniffing is a bad practice - it's inaccurate, hurts minority  
> browsers and is not forward-compatible. Please change your method to use  
> Accept header, so it won't be affecting any HTML-only user-agents (web  
> is more than a handful of desktop browsers).  Accept method will even  
> work for MSIE and Lynx when/if they start supporting XHTML.
>
> Even your regular expressions for User-Agent aren't doing exactly what  
> you intended, because mod_rewrite does not anchor patterns.

While I totally agree that browser sniffing isn't a way to go, I must say  
that Accept headers cannot be used to resolve this because MSIE claims to  
support */* in the Accept header that it sends.


-- 
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
Received on Wednesday, 7 March 2007 15:52:08 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:53 UTC