aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
* Support setting both the enctype attribute and property (encoding in IE6/7). ↵timmywil2011-10-221-17/+29
| | | | Fixes #6743.
* Use the property name in elem.removeAttribute in IE6/7 to ensure correct ↵timmywil2011-10-171-3/+5
| | | | removals. Fixes #10514.
* Add a hook for removing contenteditable in IE6/7 and remove the unnecessary ↵timmywil2011-10-061-9/+11
| | | | jQuery.attrFix. Fixes #10429.
* Landing pull request 492. 1.7 Remove multiple attributes (Symmetry with ↵Rick Waldron2011-09-191-0/+22
| | | | | | | | removeClass) Combines patches submitted by leeoniya, zertosh and my own tests. Fixes #5479. More Details: - https://github.com/jquery/jquery/pull/492 - http://bugs.jquery.com/ticket/5479
* Add sparse array performance improvement for inArray. Thanks rwaldron, ↵timmywil2011-09-191-1/+1
| | | | rkatic, and jdalton
* Check for property support in the boolHook before falling back to attribute ↵timmywil2011-09-191-8/+12
| | | | node. Fixes #10278.
* Override Sizzle attribute retrieval with jQuery.attr. Fixes #5637, #7128, ↵timmywil2011-09-191-7/+8
| | | | | | #9261, #9570, #10178. Bug fixed on the side: $(window).is('a') was throwing an exception. Fixes #10178.
* Revert back to always setting the attribute to empty string before removal. ↵timmywil2011-08-251-8/+9
| | | | Fixes #9699.
* Fixes assertion counts and dom element fixture issueRick Waldron2011-08-051-14/+14
|
* Now using getAttributeNode in all attribute cases in IE6/7, which normalizes ↵timmywil2011-08-041-23/+22
| | | | attribute behaviors across browsers, is less hacky, and shortens the attribute code. Fixes #9980.
* Make the tabIndex hook first a propHook and add it to attrHooks for ↵timmywil2011-08-041-0/+55
| | | | back-compat reasons. Fixes #9979.
* Merge pull request #419 from rwldrn/9630Dave Methvin2011-08-041-0/+10
|\ | | | | Unit tests assert that .contents().hasClass() works as expected. Fixes #9630
| * Filter hasClass by nodeType 1; Fixes #9630rwldrn2011-06-221-1/+1
| |
| * Assert that .contents().hasClass() works as expected. Fixes #9630rwldrn2011-06-211-0/+10
| |
* | Check the attribute node value for false for HTML5 booleans when not ↵timmywil2011-07-091-8/+15
|/ | | | supported. Fixes #9504.
* Allow similarly named classes (regression from 9499) and switch class ↵timmywil2011-06-191-4/+11
| | | | retrieval to property when passing class to value functions. Fixes #9617.
* Attribute hooks do not need to be attached in XML docs. Fixes #9568.timmywil2011-06-131-3/+4
|
* Check classes passed for duplicates. Fixes #9499.timmywil2011-06-071-2/+11
|
* Landing pull request 382. Adds support for number values (meter,progress); ↵rwldrn2011-05-201-0/+24
| | | | | | | | Fixes #9319. More Details: - https://github.com/jquery/jquery/pull/382 - http://bugs.jquery.com/ticket/9319
* Handle unset value attributes consistently depending on property existence. ↵timmywil2011-05-181-1/+3
| | | | Supplements #9328.
* Make the value hook less obtrusive for elements which do not inherently have ↵timmywil2011-05-181-1/+2
| | | | a value property. Fixes #9328.
* Switched title attribute to getAttributeNode for IE6/7. Fixes #9329.timmywil2011-05-181-4/+6
|
* Use getAttributeNode for ^on attributes in IE6/7 to avoid anonymous function ↵timmywil2011-05-161-2/+5
| | | | wrapper. Fixes #9298.
* Retrieve the class attribute on a form in IE6/7. Fixes 9286.timmywil2011-05-141-1/+4
|
* Make sure setting boolean attributes to the same name sets the property to a ↵timmywil2011-05-131-1/+6
| | | | boolean type
* Use prop to retrieve boolean properties (so the selected hook will be used)timmywil2011-05-131-1/+7
|
* Add fallback to prop for the window and document. Switch value to use the ↵timmywil2011-05-101-16/+20
| | | | property instead of the attribute for back compat.
* Remove value check from formHook; other elements can use value hooktimmywil2011-05-071-1/+3
|
* Set val before hide/show check and fix easing setting; also update ↵timmywil2011-05-071-3/+7
| | | | | | attributes test for autofocus - The object passed should not change so it can be used in future animates, updated src and tests accordingly.
* Reduce the boolean list only to those that have corresponding IDLs that ↵timmywil2011-05-071-1/+1
| | | | | | don't require being added to propFix; only set the IDL if it exists - See http://jsfiddle.net/timmywil/u5NLn/ for how boolean attributes are handled in every browser.
* Check empty string instead of specified as specified is inconsistent on the ↵timmywil2011-05-061-1/+3
| | | | name attribute. Fixes #9148.
* Add support for the contenteditable attributetimmywil2011-05-051-2/+6
|
* Set the property corresponding to a boolean attribute when setting to true. ↵timmywil2011-05-041-1/+2
| | | | | | Fixes #9103. - Once boolean properties had been modified natively, setting the attribute no longer set the current value
* Set corresponding property to false when removing boolean attributes. Fixes ↵timmywil2011-05-041-1/+6
| | | | #9094
* Update boolean check to avoid crashes, add all name fixes to propFix ↵timmywil2011-05-041-50/+75
| | | | (properties are case-sensitive in all browsers), add tests for prop
* 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