From 33c097bd1e3caf623cc9a1e4518150c5a2233e93 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Wed, 16 May 2007 16:21:50 +0000 Subject: [PATCH] Fix for #1198 --- src/jquery/jquery.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index fbd569629..746623645 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1442,7 +1442,7 @@ jQuery.extend({ return ret == "" ? "1" : ret; } - if (prop == "float" || prop == "cssFloat") + if (prop.match(/float/i)) prop = jQuery.browser.msie ? "styleFloat" : "cssFloat"; if (!force && elem.style[prop]) @@ -1450,7 +1450,7 @@ jQuery.extend({ else if (document.defaultView && document.defaultView.getComputedStyle) { - if (prop == "cssFloat" || prop == "styleFloat") + if (prop.match(/float/i)) prop = "float"; prop = prop.replace(/([A-Z])/g,"-$1").toLowerCase(); @@ -1558,6 +1558,7 @@ jQuery.extend({ "class": "className", "float": jQuery.browser.msie ? "styleFloat" : "cssFloat", cssFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat", + styleFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat", innerHTML: "innerHTML", className: "className", value: "value", -- 2.39.5