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

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 UTC