Side navigation
Ticket #1198: jquery.float.diff
File jquery.float.diff, 1.0 KB (added by brandon, May 16, 2007 03:39PM UTC)
Patch
Index: src/jquery/jquery.js
===================================================================
--- src/jquery/jquery.js (revision 1908)
+++ src/jquery/jquery.js (working copy)
@@ -1442,7 +1442,7 @@
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 @@
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 +1560,7 @@
"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",
Download in other formats:
Original Format
File jquery.float.diff, 1.0 KB (added by brandon, May 16, 2007 03:39PM UTC)
Patch
Index: src/jquery/jquery.js
===================================================================
--- src/jquery/jquery.js (revision 1908)
+++ src/jquery/jquery.js (working copy)
@@ -1442,7 +1442,7 @@
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 @@
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 +1560,7 @@
"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",