- 11 Apr, 2011 1 commit
-
-
- 10 Apr, 2011 2 commits
-
-
timmywil authored
#8150 - When removing the width and height attributes in IE6/7, setting to "" actually sets to 0 instead of auto - Having fixed this automatically with the use of removeAttribute in browsers that support it, this will fix it for IE6/7 as well. - This has no effect on width/height styles set elsewhere( test added to removeAttr ) - With this addition, I need to call attr in removeAttr for IE6/7, which means boolean calls like .attr("checked", "") will no longer remove the attribute, which I think is fine. .attr("checked", false) will still remove. If I had left it, it would have gone in an infinite loop since setting to empty string is the only way to remove it in these browsers. - The hrefNormalized hooks were returning null if they weren't present. Added the null check to the getter. - Now that the style support fails in IE8 as well due to uppercasing everything, no need to have style included with the hrefNormalized hooks -
timmywil authored
IE8 testing for lowercasing the css properties on retrieving style; had assumed the style support check failed in IE8, which it now does
-
- 04 Apr, 2011 37 commits
-
-
timmywil authored
Normalize css property names to lowercase for comparisons on a .attr('style') call since IE uppercases everything -
timmywil authored
- Style is now a special case in IE6/7 to set cssText. My goal is to avoid calling attr again for the performance benefit, and at this point it would also cause an infinite loop for the boolean attributes hooks such as selected & checked. Nevertheless, style seems to be the only one requiring a special call.
-
timmywil authored
- Extra testing on removeAttr and IE form weirdness( all good )
-
timmywil authored
Minor adjustments and cleanup, including normalizing the value to a string when setting( list of changes below ) - Normalize set value to string to synchronize return type cross-browser - Add style attrHook to propHooks to support style getting in all browsers for both attr and prop - Extend the selected propHook instead of overriding a possible set function - Remove selected propHook TODO since there is no selected content attribute and it should return null
-
timmywil authored
- #8255 Added support for the list attribute in browsers that support it (it is automatically readonly, but can be set if using getAttribute( name, 2)
-
timmywil authored
- Added a hook to swap display none for width and height in browsers that do not sufficiently support get/setAttribute
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
No longer need to check for objects or string of null with the special form treatment and updates to removeAttr
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
Fix #6562, tighten up the special code for form objects, add name attrHook for IE6/7, and don't check for undefined with getting hook'd attr
-
timmywil authored
- Forms with an input that has either name="action" or name="some-other-attr-on-the-form" caused problems in IE6/7. This is fixed. - Changed check in $.attr for ret === null to typeof ret === "object" to catch any inputs that are accidentally retrieved in IE6/7, since attributes cannot be set to objects and typeof null === "object"
-
timmywil authored
- Remove an unnecessary var - Use variable in removeAttr for better minification
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
Restored 6 tests that I had commented to come back to later to split up between prop and attr. All tests still pass in all browsers. - I should make it clear that I have not removed any tests, but only moved some attr tests to prop where I thought it was appropriate.
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
-
timmywil authored
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. -
timmywil authored
Continuing IE7 testing, conditional attr fixes and hooks with feature testing. Will figure out a way to shorten after the test suite passes.
-
timmywil authored
-
timmywil authored
-
timmywil authored
First proposed solution for IE6/7 get/setAttribute quirks. Needs more testing, but solves some issues
-
timmywil authored
-
timmywil authored
-