aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-04-09 15:56:35 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-09 15:56:35 -0400
commit17afd80d485b4ca36145a40fd7ac8f81f7099f7c (patch)
treee1b0c8af748662955bacb26538fd5d515c0ee35a /src/support.js
parent6f79bee3e3ea874f27389a7e691c1bd7541f2ef6 (diff)
downloadjquery-17afd80d485b4ca36145a40fd7ac8f81f7099f7c.tar.gz
jquery-17afd80d485b4ca36145a40fd7ac8f81f7099f7c.zip
IE8 testing for lowercasing the css properties on retrieving style; had assumed the style support check failed in IE8, which it now does
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/support.js b/src/support.js
index b227293d8..89d2bfea2 100644
--- a/src/support.js
+++ b/src/support.js
@@ -8,7 +8,7 @@
div.style.display = "none";
div.setAttribute("className", "t");
- div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+ div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var all = div.getElementsByTagName("*"),
a = div.getElementsByTagName("a")[0],
@@ -34,8 +34,8 @@
htmlSerialize: !!div.getElementsByTagName("link").length,
// Get the style information from getAttribute
- // (IE uses .cssText insted)
- style: /red/.test( a.getAttribute("style") ),
+ // (IE uses .cssText instead, and capitalizes all property names)
+ style: /top/.test( a.getAttribute("style") ),
// Make sure that URLs aren't manipulated
// (IE normalizes it by default)