diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-03-13 15:44:51 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-03 19:13:39 -0400 |
commit | 9f88fa9165e73b879d0c955fdf81fdd681d2d192 (patch) | |
tree | c089ef96813e9200d7fc609bb8408842bd0b8b19 /src/support.js | |
parent | 8cd30c62d813af68ccd91cc41adf43b8907f41cf (diff) | |
download | jquery-9f88fa9165e73b879d0c955fdf81fdd681d2d192.tar.gz jquery-9f88fa9165e73b879d0c955fdf81fdd681d2d192.zip |
Full test suite now passes in all browsers! There are probably some tweaks we can make to shorten and simplify.
- removeAttr now only uses setAttribute if camelCase setAttribute is not supported
+ Might want to rename jQuery.support.getSetAttribute
- tabIndex is a special case now for hooks where undefined should be returned.
+ Should we be checking if hooks returns undefined? undefined might be the desired return value in future hooks.
As of now, tabIndex is the only one that needs it, but the test suite will still pass if we don't check if hooks are undefined.
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js index 8e86c46cf..b227293d8 100644 --- a/src/support.js +++ b/src/support.js @@ -58,7 +58,8 @@ // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) optSelected: opt.selected, - + + // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) getSetAttribute: div.className !== "t", // Will be defined later |