Re: Proposal: useragent at-rule

Felipe Gasper:
> UA strings are useful, but it only really makes sense to have them come *from*
> the client, not from the client to the client.

Please try the following in any browser:

<script>
alert( navigator.appName );
</script>

The User-Agent will appear, and you never asked the server anything.


> is there a great benefit to detecting the user agent in CSS over server-side,
> other than the event that a CGI environment isn't available?

How about authors who intend to write static HTML with CSS? The millions of them 
that have no clue what CGI is and will likely never learn it?

The point is to accept this problem and give it a clear syntax - the CGI kludge is
still a kludge, even if it's familiar to you.

-Chris "SoopahMan" Moschini
http://hiveminds.info/
http://soopahman.com/

Received on Tuesday, 30 March 2004 12:03:47 UTC