<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+* Use different tactic to sniff for Opera in order to avoid false positives in IE. [Tobie Langel, jddalton]
+
 * Optimize Function#bind and Function#bindAsEventListener to avoid using Array#concat when only the context argument is given. [kangax]
 
 * Ensure Selector.handlers.id finds the proper element even when it's not attached to the document. [jddalton]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -475,7 +475,7 @@ Element.Methods = {
       element.style.position = 'relative';
       // Opera returns the offset relative to the positioning context, when an
       // element is position relative but top and left have not been defined
-      if (window.opera) {
+      if (Prototype.Browser.Opera) {
         element.style.top = 0;
         element.style.left = 0;
       }  </diff>
      <filename>src/dom.js</filename>
    </modified>
    <modified>
      <diff>@@ -4,10 +4,12 @@ var Prototype = {
   Version: '&lt;%= PROTOTYPE_VERSION %&gt;',
   
   Browser: {
-    IE:     !!(window.attachEvent &amp;&amp; !window.opera),
-    Opera:  !!window.opera,
+    IE:     !!(window.attachEvent &amp;&amp;
+      navigator.userAgent.indexOf('Opera') === -1),
+    Opera:  navigator.userAgent.indexOf('Opera') &gt; -1,
     WebKit: navigator.userAgent.indexOf('AppleWebKit/') &gt; -1,
-    Gecko:  navigator.userAgent.indexOf('Gecko') &gt; -1 &amp;&amp; navigator.userAgent.indexOf('KHTML') == -1,
+    Gecko:  navigator.userAgent.indexOf('Gecko') &gt; -1 &amp;&amp; 
+      navigator.userAgent.indexOf('KHTML') === -1,
     MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
   },
 </diff>
      <filename>src/prototype.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>76e6f9fa46e45c8131d549621684a3d473ba0653</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Dupont</name>
    <email>prototype@andrewdupont.net</email>
  </author>
  <url>http://github.com/sstephenson/prototype/commit/9f00912b52125f3bdaee4aa544a885a1cae993e0</url>
  <id>9f00912b52125f3bdaee4aa544a885a1cae993e0</id>
  <committed-date>2008-07-17T13:22:18-07:00</committed-date>
  <authored-date>2008-07-17T13:22:18-07:00</authored-date>
  <message>Use different tactic to sniff for Opera in order to avoid false positives in IE. [#176 state:resolved]</message>
  <tree>228aee29b7eb48c94122782aab50f0cf3786b36e</tree>
  <committer>
    <name>Andrew Dupont</name>
    <email>prototype@andrewdupont.net</email>
  </committer>
</commit>
