W3C home > Mailing lists > Public > www-style@w3.org > August 2008

Re: Bug detection (was: Re: @media and browsers conditional statments)

From: Brad Kemper <brkemper.comcast@gmail.com>
Date: Mon, 11 Aug 2008 08:32:33 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "Keryx Web" <webmaster@keryx.se>, "CSS 3 W3C Group" <www-style@w3.org>
Message-Id: <3F2E0B23-4EF5-4732-AFEA-2E3C397C7769@gmail.com>
To: Simetrical <simetrical@gmail.com>


On Aug 11, 2008, at 8:00 AM, Simetrical wrote:

> The point is not to allow browser sniffing, because that's already
> possible (via JS or selector hacks, say).  The point is to make it
> cleaner, more reliable, and more explicit than the current hacks
> allow.  Would the Web be better off if JavaScript didn't have
> User-Agent checking?  No: people would just rely on non-standard lists
> of hacks to expose browser-specific functionality.  if(
> userAgent.indexOf( 'Opera' ) != -1 ) would become some
> incomprehensible line of code copy-pasted from a website that checked
> if document or window had some specific member variable.  That's the
> state of affairs in CSS right now, and it benefits no one.

Yes. Exactly right.
Received on Monday, 11 August 2008 15:33:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:11 GMT