aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Reduce boolean attribute list to only content attributestimmywil2011-05-061-1/+1
| | | | - Removed IDL-only boolean attributes as well as officially deprecated attributes that we've not supported before
* Update boolean attribute list to contain all boolean attributes listed in w3ctimmywil2011-05-051-1/+1
|
* Add support for the contenteditable attributetimmywil2011-05-051-1/+2
|
* Construct boolHook and rboolean regex to deal with boolean attributes. Fixes ↵timmywil2011-05-051-39/+47
| | | | | | | | | | | | #9129. Fixes #9123. - Construct regex for all attributes which are boolean attributes by specification. + This allows us to do what users expect with enumerated attributes and allows us to no longer complicate the issue. + People are just too confused with passing "true" instead of true when they should, so we won't have to worry about that anymore. - Modularize code for dealing with boolean attributes into a separate hook to keep attr short and fast.
* Set the property corresponding to a boolean attribute when setting to true. ↵timmywil2011-05-041-2/+6
| | | | | | Fixes #9103. - Once boolean properties had been modified natively, setting the attribute no longer set the current value
* Run property names through propFix in removeProptimmywil2011-05-041-0/+1
|
* Set corresponding property to false when removing boolean attributes. Fixes ↵timmywil2011-05-041-0/+6
| | | | #9094
* Update boolean check to avoid crashes, add all name fixes to propFix ↵timmywil2011-05-041-16/+20
| | | | (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-7/+14
| | | | attribute-style value for boolean attributes. Fixes #9079.
* Fix setting value attributes on option elements. Fixes #9071.timmywil2011-05-031-1/+1
|
* Test for a colon in attribute names for IE6/7. Fixes #1591.timmywil2011-05-011-2/+7
|
* Restores var names to satisfy the crock-machine. Supplements #9008Rick Waldron2011-04-281-4/+4
|
* Add tests data- and aria- attributes and the autofocus boolean attribute and ↵timmywil2011-04-251-3/+6
| | | | some style updates in jQuery.attr
* handle data- and aria- specialaFarkas2011-04-251-2/+3
|
* dealing with boolean content attributeaFarkas2011-04-251-15/+4
|
* Switch the form nodeName check in attr to use jQuery.nodeName for consistencytimmywil2011-04-231-1/+1
|
* Combine the support tests for radioValue and appendCheckedtimmywil2011-04-221-0/+1
|
* Landing pull request [337](https://github.com/jquery/jquery/pull/337). Value ↵timmywil2011-04-211-1/+9
| | | | of radio inputs resets when type is set after the value in all IEs. Fixes #8570 ([bug](http://bugs.jquery.com/ticket/8570)).
* Follow w3c standard for setting the common boolean attributes to the same ↵timmywil2011-04-191-1/+4
| | | | name(selected, checked, readOnly, and disabled)
* Only use getAttributeNode on buttons when setting valuetimmywil2011-04-191-0/+3
|
* Fix value attribute and val for value on button elements. Fixes #1954timmywil2011-04-171-3/+3
|
* Add support for setting the cellPadding attribute in IE6/7timmywil2011-04-141-0/+1
|
* retrieving list with getAttribute is fine, no need to add list here anymoretimmywil2011-04-111-1/+1
|
* Merge branch 'attrhooks.1.6v2' of https://github.com/timmywil/jqueryjeresig2011-04-101-14/+0
|\
| * Added back support.js test for getSetAttribute and removed some duplicate ↵timmywil2011-04-101-14/+0
| | | | | | | | code that crept into attributes.js
* | Merge branch 'modest_val_proposal' of https://github.com/timmywil/jquery ↵jeresig2011-04-101-74/+102
|\ \ | |/ |/| | | | | | | | | into timmywil-modest_val_proposal Conflicts: src/attributes.js
| * Performance testing: localize val to each block and only set val to value ↵timmywil2011-04-051-5/+6
| | | | | | | | when not a function
| * Remove the unused radiocheck regextimmywil2011-04-041-2/+1
| |
| * A more modest valHooks proposaltimmywil2011-04-021-73/+101
| | | | | | | | | | | | | | | | | | | | | | | | - The main difference is that this does not allow arbitrarily adding hooks to any collection of elements. - Modularizes val into a set of easily maintainable and conditional hooks. - valHooks is placed at jQuery.valHooks + This could technically be extended, but I do not see it being used except in very rare cases since you can only apply valHooks to nodeNames and input types, and not a collection of elements as before. We could theoretically privatize valHooks taking it off of jQuery and only use it internally for our own convenience, but again, I do not believe this patch carries with it the dangers of the first proposal. - Slightly improved performance of val on radios and checkboxes for browsers that support checkOn, given the conditional attachment of its hook.
* | Merge branch 'attrhooks.1.6v2' of https://github.com/timmywil/jquery into ↵jeresig2011-04-101-68/+148
|\ \ | | | | | | | | | | | | | | | | | | timmywil-attrhooks.1.6v2 Conflicts: src/attributes.js
| * | #8150 - When removing the width and height attributes in IE6/7, setting to ↵timmywil2011-04-091-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "" 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
| * | Normalize css property names to lowercase for comparisons on a ↵timmywil2011-04-031-1/+2
| | | | | | | | | | | | .attr('style') call since IE uppercases everything
| * | Found a problem removing the style attribute in IEtimmywil2011-04-031-12/+15
| | | | | | | | | | | | - 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.
| * | Move the if statement in jQuery.fn.removeAttr to jQuery.removeAttrtimmywil2011-04-031-11/+11
| | | | | | | | | | | | - Extra testing on removeAttr and IE form weirdness( all good )
| * | Minor adjustments and cleanup, including normalizing the value to a string ↵timmywil2011-04-031-16/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | #5413 - Much shorter solution for getting width/height in ie6timmywil2011-04-031-15/+1
| | | | | | | | | | | | - #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-0/+14
| | | | | | | | | | | | not sufficiently support get/setAttribute
| * | Move the check for the name attribute out of attr and down to the formHook ↵timmywil2011-04-031-2/+2
| | | | | | | | | | | | definition
| * | Shorten the logic for hooks, ternary was unnecessarytimmywil2011-04-031-3/+1
| | |
| * | Add name to prop hooks as welltimmywil2011-04-031-2/+2
| | |
| * | Add attribute name to paramaters for hookstimmywil2011-04-031-23/+21
| | |
| * | Style formattingtimmywil2011-04-031-2/+3
| | |
| * | No longer need to check for objects or string of null with the special form ↵timmywil2011-04-031-2/+1
| | | | | | | | | | | | treatment and updates to removeAttr
| * | Clean uptimmywil2011-04-031-5/+7
| | |
| * | Shorten even furthertimmywil2011-04-031-2/+2
| | |
| * | Modularize special form code for IE6/7 and clean up attr againtimmywil2011-04-031-32/+36
| | |
| * | Fix issue where non-existant attributes on forms in IE6/7 were throwing errorstimmywil2011-04-031-5/+7
| | |
| * | Add test for bug #3116timmywil2011-04-031-1/+1
| | |
| * | Fix #6562, tighten up the special code for form objects, add name attrHook ↵timmywil2011-04-031-41/+45
| | | | | | | | | | | | for IE6/7, and don't check for undefined with getting hook'd attr
| * | Fix #7472 and added test for #3113timmywil2011-04-031-1/+2
| | | | | | | | | | | | | | | | | | - 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"