Yahoo! UI Library

yui  3.0.0pr2

Yahoo! UI Library > yui > UA
Search:
 
Filters

static Class UA

Browser/platform detection

Properties

gecko - static float

Gecko engine revision number. Will evaluate to 1 if Gecko is detected but the revision could not be found. Other browsers will be 0. Example: 1.8
Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
Firefox 3 alpha: 1.9a4   <-- Reports 1.9

ie - static float

Internet Explorer version number or 0. Example: 6

mobile - static string

The mobile property will be set to a string containing any relevant user agent information when a modern mobile browser is detected. Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series devices with the WebKit-based browser, and Opera Mini.

opera - static float

Opera version number or 0. Example: 9.2

webkit - static float

AppleWebKit version. KHTML browsers that are not WebKit browsers will evaluate to 1, other browsers 0. Example: 418.9.1
Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
latest available for Mac OSX 10.3.
Safari 2.0.2:         416     <-- hasOwnProperty introduced
Safari 2.0.4:         418     <-- preventDefault fixed
Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
different versions of webkit
Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
updated, but not updated
to the latest patch.
Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
and many major issues fixed).
Safari 3.0.4 (523.12) 523.12  <-- First Tiger release - automatic update
from 2.x via the 10.4.11 OS patch
http://developer.apple.com/internet/safari/uamatrix.html

Methods

dump

String dump ( o , d )
Returns a simple string representation of the object or array. Other types of objects will be returned unprocessed. Arrays are expected to be indexed. Use object notation for associative arrays.
Parameters:
o <Object> The object to dump
d <int> How deep to recurse child objects, default 3
Returns: String
the dump result


Copyright © 2008 Yahoo! Inc. All rights reserved.