From 916cbbaf4c1d32117f2d873a1125e74b5cd04b96 Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Mon, 29 Oct 2007 23:06:15 +0000 Subject: [PATCH] Apply the workaround for the Firefox "blinking element" opacity=1 bug only to Firefox 1.5. --- CHANGELOG | 2 ++ src/dom.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index ec353e9..643b69b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Apply the workaround for the Firefox "blinking element" opacity=1 bug only to Firefox 1.5. [Thomas Fuchs] + * Add event.stopped, a boolean that is set to `true` when Event#stop is called. [Andrew Dupont, sam] * Reset the browser's dimensions to their original settings after running the DOM viewport tests. [sam] diff --git a/src/dom.js b/src/dom.js index 1512459..a3d24e2 100644 --- a/src/dom.js +++ b/src/dom.js @@ -847,7 +847,7 @@ else if (Prototype.Browser.IE) { })(Element._attributeTranslations.read.values); } -else if (Prototype.Browser.Gecko) { +else if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) { Element.Methods.setOpacity = function(element, value) { element = $(element); element.style.opacity = (value == 1) ? 0.999999 :