diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-04-10 17:08:18 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-10 17:08:18 -0400 |
commit | 215c507f796db16a6e9230a2ecc27c57a1b85280 (patch) | |
tree | c7fcf6828dac4f3be2dadf8149ed570bba2914d3 /src/support.js | |
parent | c10a76ec71b49575dad22b26c8675cfa8b41d862 (diff) | |
download | jquery-215c507f796db16a6e9230a2ecc27c57a1b85280.tar.gz jquery-215c507f796db16a6e9230a2ecc27c57a1b85280.zip |
Added back support.js test for getSetAttribute and removed some duplicate code that crept into attributes.js
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/support.js b/src/support.js index 10696aabd..a919e4c7c 100644 --- a/src/support.js +++ b/src/support.js @@ -19,7 +19,8 @@ jQuery.support = (function() { isSupported; // Preliminary tests - div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; + div.setAttribute("className", "t"); + div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; all = div.getElementsByTagName( "*" ); a = div.getElementsByTagName( "a" )[ 0 ]; @@ -48,7 +49,7 @@ jQuery.support = (function() { // Get the style information from getAttribute // (IE uses .cssText instead) - style: /red/.test( a.getAttribute("style") ), + style: /top/.test( a.getAttribute("style") ), // Make sure that URLs aren't manipulated // (IE normalizes it by default) |