aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
...
* If no hook is provided, and a boolean property exists, use that to return an ↵John Resig2011-05-031-4/+29
| | | | attribute-style value for boolean attributes. Fixes #9079.
* Fix setting value attributes on option elements. Fixes #9071.timmywil2011-05-031-1/+3
|
* Test for a colon in attribute names for IE6/7. Fixes #1591.timmywil2011-05-011-1/+5
|
* Add tests data- and aria- attributes and the autofocus boolean attribute and ↵timmywil2011-04-251-3/+11
| | | | some style updates in jQuery.attr
* Landing pull request [337](https://github.com/jquery/jquery/pull/337). Value ↵timmywil2011-04-211-2/+6
| | | | of radio inputs resets when type is set after the value in all IEs. Fixes #8570 ([bug](http://bugs.jquery.com/ticket/8570)).
* Only use getAttributeNode on buttons when setting valuetimmywil2011-04-191-1/+2
|
* Fix value attribute and val for value on button elements. Fixes #1954timmywil2011-04-171-2/+11
|
* Switch QUnit div from depreceted #main to #qunit-fixturetimmywil2011-04-171-2/+2
|
* Add support for setting the cellPadding attribute in IE6/7timmywil2011-04-141-0/+1
|
* IE9's support for SVG elements unfortunately does not extend to ↵timmywil2011-04-131-1/+1
| | | | clearAttributes. Checks for its presence before proceeding.
* VML.type test was causing multiple test suite fails, fix attributes.js fail ↵timmywil2011-04-121-7/+9
| | | | in IE6 where the val(String/Number) tests were interfering with the val(Function) tests
* second batchlouisremi2011-04-111-182/+182
|
* Had some stale code in test/unit/attributes.jstimmywil2011-04-101-4/+0
|
* #8150 - When removing the width and height attributes in IE6/7, setting to ↵timmywil2011-04-091-5/+5
| | | | | | | | | | | | | | "" 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
* IE8 testing for lowercasing the css properties on retrieving style; had ↵timmywil2011-04-091-2/+2
| | | | assumed the style support check failed in IE8, which it now does
* Normalize css property names to lowercase for comparisons on a ↵timmywil2011-04-031-2/+2
| | | | .attr('style') call since IE uppercases everything
* Found a problem removing the style attribute in IEtimmywil2011-04-031-4/+9
| | | | - 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.
* #5413 - Much shorter solution for getting width/height in ie6timmywil2011-04-031-1/+5
| | | | - #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)
* - Added a hook to swap display none for width and height in browsers that do ↵timmywil2011-04-031-4/+8
| | | | not sufficiently support get/setAttribute
* Add style attribute support tests to $.attrtimmywil2011-04-031-2/+5
|
* Fix issue where non-existant attributes on forms in IE6/7 were throwing errorstimmywil2011-04-031-4/+5
|
* Add test for bug #3116timmywil2011-04-031-4/+12
|
* Add test for bug#3685, remove added html and add dynamicly to avoid global ↵timmywil2011-04-031-1/+6
| | | | test suite errors
* Fix #6562, tighten up the special code for form objects, add name attrHook ↵timmywil2011-04-031-15/+23
| | | | for IE6/7, and don't check for undefined with getting hook'd attr
* Fix #7472 and added test for #3113timmywil2011-04-031-3/+5
| | | | | | - 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"
* Test descriptiontimmywil2011-04-031-1/+1
|
* Restored 6 tests that I had commented to come back to later to split up ↵timmywil2011-04-031-21/+24
| | | | | | 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.
* Style edits according to comments from John and rwaldron.timmywil2011-04-031-0/+25
|
* Continuing IE7 testing, conditional attr fixes and hooks with feature ↵timmywil2011-04-031-1/+1
| | | | testing. Will figure out a way to shorten after the test suite passes.
* Now passes in IE8, changed around $.hasAttr and switched the attrHook for ↵timmywil2011-04-031-29/+5
| | | | selected to be a propHook
* Make the new attr/prop changes pass the test suite (in Webkit). There are ↵timmywil2011-04-031-88/+93
| | | | | | | | | | | | | | | | still errors in IE. + Added hooks for selected, checked, readonly, disabled to removeAttr if set to falsey + Removed all attrs from attrFix, these aren't needed for setAttribute + If prop is used for class, do we want a propFix for class? - We could just assume the user should know to use className with prop. I've done the latter for now. + Created tests for $.fn.prop and $.fn.removeProp - Actually all I did was change broken attr tests to prop where it made sense.
* Make sure .val() works after form.reset() in IE. Fixes #2551.rwldrn2011-02-101-0/+19
|
* Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-1/+1
| | | | globals and fix all leaks in the tests.
* Change the way jQuery.data works so that there is no longer a chance of ↵Colin Snover2011-01-091-6/+4
| | | | collision between user data and internal data. Fixes #6968.
* Clean trailing whitespace from all files.Colin Snover2010-12-301-33/+33
|
* Merge branch 'attrFollowupFix' of https://github.com/jitter/jquery into ↵jeresig2010-12-091-4/+4
|\ | | | | | | jitter-attrFollowupFix
| * Fix attr() problems in IE with attribute nodes. Followup to commit b50f41a2.Anton M2010-12-071-4/+4
| | | | | | | | | | IE can't add properties on an attribute-node element, thus we handle it like text-/comment-nodes.
* | Merge branch 'support_6897' of https://github.com/rwldrn/jquery into ↵jeresig2010-12-091-0/+25
|\ \ | |/ |/| | | rwldrn-support_6897
| * Support unit test for #6897rwldrn2010-11-091-0/+25
| |
* | Merge branch 'restrictAttr' of https://github.com/jitter/jquery into ↵John Resig2010-12-061-3/+48
|\ \ | | | | | | | | | jitter-restrictAttr
| * | Make sure attr() works on non DOM element nodes. Fixes #7202, #7451, #7500.Anton M2010-11-131-3/+48
| |/ | | | | | | Also added some tests for this attr(name), attr(name, value) and removeAttr(name).
* / Handle carriage return characters in className property. Fixes #7673.Anton M2010-12-011-4/+8
|/
* Remove conditional that prevents attr from working on non-Element nodes. ↵Colin Snover2010-11-091-1/+3
| | | | Fixes #7451.
* Update number of expected assertions in attribute testsAnton M2010-10-191-2/+2
| | | | | Followup to commit 97dfa0d5a85a32fe56aba837bbf2bc889b092d2b which had the side effect to break some attribute unit tests
* Coerce all array values to strings before comparison in val(). Fixes bug #7123.Colin Snover2010-10-081-1/+13
|
* Make sure that ambiguous val() selection works correctly.John Resig2010-09-281-1/+9
|
* Make .attr(name, null) equivalent to removeAttr(name). (Was roughly this ↵John Resig2010-09-281-1/+6
| | | | before - but is now consistent across platforms). Fixes #6341.
* Make .val(undefined) == .val("") and chainable; fixes #4130.dmethvin2010-09-251-1/+7
| | | | Ensure .val(null) sets an empty string on IE6/7; fixes #5163.
* Don't have .val() return selected-but-disabled options, or selected options ↵Dave Methvin2010-09-241-1/+9
| | | | inside a disabled optgroup. Doesn't change the .val() returned for a disabled select. Fixes #3240, adapted from Nathan Hammond's patch there.
* Fixed the number of expected class tests from a previous commit. Thanks to ↵John Resig2010-09-221-2/+2
| | | | @bugbegone in 1f667aa035b3e4885d6b35fa9aa4990310f131af for the catch.