]> source.dussan.org Git - jquery.git/commitdiff
Fix for 193
authorBrandon Aaron <brandon.aaron@gmail.com>
Wed, 11 Oct 2006 04:23:04 +0000 (04:23 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Wed, 11 Oct 2006 04:23:04 +0000 (04:23 +0000)
src/jquery/jquery.js

index a4ba11fca1b6ab120d4a306bbac1f1f7e6a6d894..d8d2564b9b593936bfa5679680629cb931fe9b45 100644 (file)
@@ -1461,6 +1461,9 @@ jQuery.extend({
                
                if (prop == 'opacity' && jQuery.browser.msie)
                        return jQuery.attr(elem.style, 'opacity');
+                       
+               if (prop == "float" || prop == "cssFloat")
+                   prop = jQuery.browser.msie ? "styleFloat" : "cssFloat";
 
                if (!force && elem.style[prop]) {
 
@@ -1824,7 +1827,8 @@ jQuery.extend({
                var fix = {
                        "for": "htmlFor",
                        "class": "className",
-                       "float": "cssFloat",
+                       "float": jQuery.browser.msie ? "styleFloat" : "cssFloat",
+                       cssFloat: fix["float"],
                        innerHTML: "innerHTML",
                        className: "className",
                        value: "value",