UA.html revision eb9b6f817df5c660be9f00fc5d27fe33479fdc98
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>API: yui UA (YUI Library)</title>
<link rel="stylesheet" type="text/css" href="assets/api.css">
<script type="text/javascript" src="assets/api-js"></script>
<script type="text/javascript" src="assets/ac-js"></script>
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
<h3>yui&nbsp; <span class="subtitle">3.00PR1</span></h3>
<p>
<a href="/index.html">Yahoo! UI Library</a>
&gt; <a href="/module_yui.html">yui</a>
&gt; UA
</p>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<form name="yui-classopts-form">
<span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> Show Private</span>
<span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> Show Protected</span>
<span id="classopts"><input type="checkbox" name="showdeprecated" id="showdeprecated" /> Show Deprecated</span>
</form>
<h2>
Class <b>UA</b>
<span class="extends">
</span>
<span class="extends">
</span>
</code>
</h2>
<!-- class tree goes here -->
<div class="summary description">
Browser/platform detection
</div>
<div class="section field details">
<h3 id="properties">Properties</h3>
<div class="content">
<div class="">
<h4><a name="property_gecko">gecko</a>
<code>- float</code>
</h4>
<div class="detail">
<div class="description">
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
<pre>
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
</pre>
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_ie">ie</a>
<code>- float</code>
</h4>
<div class="detail">
<div class="description">
Internet Explorer version number or 0. Example: 6
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_mobile">mobile</a>
<code>- string</code>
</h4>
<div class="detail">
<div class="description">
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.
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_opera">opera</a>
<code>- float</code>
</h4>
<div class="detail">
<div class="description">
Opera version number or 0. Example: 9.2
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_webkit">webkit</a>
<code>- float</code>
</h4>
<div class="detail">
<div class="description">
AppleWebKit version. KHTML browsers that are not WebKit browsers
will evaluate to 1, other browsers 0. Example: 418.9.1
<pre>
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
</pre>
http://developer.apple.com/internet/safari/uamatrix.html
</div>
</div>
<hr />
</div>
</div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div class="module">
<h4>Modules</h4>
<ul class="content">
<li class=""><a href="module_anim.html">anim</a></li>
<li class=""><a href="module_anim-color.html">anim-color</a></li>
<li class=""><a href="module_anim-curve.html">anim-curve</a></li>
<li class=""><a href="module_anim-easing.html">anim-easing</a></li>
<li class=""><a href="module_anim-scroll.html">anim-scroll</a></li>
<li class=""><a href="module_anim-xy.html">anim-xy</a></li>
<li class=""><a href="module_attribute.html">attribute</a></li>
<li class=""><a href="module_base.html">base</a></li>
<li class=""><a href="module_dd-plugin.html">dd-plugin</a></li>
<li class=""><a href="module_event.html">event</a></li>
<li class=""><a href="module_get.html">get</a></li>
<li class=""><a href="module_io.html">io</a></li>
<li class=""><a href="module_loader.html">loader</a></li>
<li class=""><a href="module_node.html">node</a></li>
<li class=""><a href="module_node-class.html">node-class</a></li>
<li class=""><a href="module_node-region.html">node-region</a></li>
<li class=""><a href="module_node-screen.html">node-screen</a></li>
<li class=""><a href="module_Queue.html">Queue</a></li>
<li class="selected"><a href="module_yui.html">yui</a></li>
</ul>
</div>
<div class="module">
<h4>Classes</h4>
<ul class="content">
<li class=""><a href="Array.html">Array</a></li>
<li class=""><a href="Lang.html">Lang</a></li>
<li class=""><a href="Object.html">Object</a></li>
<li class="selected"><a href="UA.html">UA</a></li>
<li class=""><a href="YUI.html">YUI</a></li>
</ul>
</div>
<div class="module">
<h4>Files</h4>
<ul class="content">
<li class=""><a href="yui-array.js.html">yui-array.js</a></li>
<li class=""><a href="yui-core.js.html">yui-core.js</a></li>
<li class=""><a href="yui-dump.js.html">yui-dump.js</a></li>
<li class=""><a href="yui-init.js.html">yui-init.js</a></li>
<li class=""><a href="yui-lang.js.html">yui-lang.js</a></li>
<li class=""><a href="yui-later.js.html">yui-later.js</a></li>
<li class=""><a href="yui-log.js.html">yui-log.js</a></li>
<li class=""><a href="yui-object.js.html">yui-object.js</a></li>
<li class=""><a href="yui-ua.js.html">yui-ua.js</a></li>
<li class=""><a href="yui.js.html">yui.js</a></li>
</ul>
</div>
<div class="module">
<h4>Properties</h4>
<ul class="content">
<li class=""><a href="#property_gecko">gecko</a>
<!--<code>&lt;float&gt;</code>-->
</li>
<li class=""><a href="#property_ie">ie</a>
<!--<code>&lt;float&gt;</code>-->
</li>
<li class=""><a href="#property_mobile">mobile</a>
<!--<code>&lt;float&gt;</code>-->
</li>
<li class=""><a href="#property_opera">opera</a>
<!--<code>&lt;float&gt;</code>-->
</li>
<li class=""><a href="#property_webkit">webkit</a>
<!--<code>&lt;float&gt;</code>-->
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright &copy; 2008 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>