- From: Brad Kemper <brkemper.comcast@gmail.com>
- Date: Mon, 11 Aug 2008 08:32:33 -0700
- To: Simetrical <simetrical@gmail.com>
- Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "Keryx Web" <webmaster@keryx.se>, "CSS 3 W3C Group" <www-style@w3.org>
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