Corey Jewett wrote:
>>      sa = /apple/.test(v),
> Why do you prefer this over /webkit/ ?

It is fairly common to spoof or manipulate a browser's user agent 
string.  Sometimes it is a native feature of the browser (like Opera), 
sometimes plugins are used.  While for example a Safari user may want to 
modify the user agent string because their bank's website locks out 
non-IE users that is fairly harmless, but when you're looking at the 
user agent from JavaScript to decide how to perform a particular action 
it gets messy.  I've never come across the vendor string being 
manipulated in this way, and thus it provides for a more reliable test.


>>      op = !sa && window.opera != undefined,
> 
> I thought about using this. Any Opera users have a reason not to?

I've never heard of an objection - this seems to be the accepted way to 
check for Opera.


Best wishes,
Dave Cardwell ~ http://davecardwell.co.uk/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to