aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
* Attribute hooks do not need to be attached in XML docs. Fixes #9568.timmywil2011-06-131-14/+17
|
* Check classes passed for duplicates. Fixes #9499.timmywil2011-06-071-22/+25
|
* Move the value attrHook to the main attrHooks object to save bytestimmywil2011-05-261-20/+19
|
* Landing pull request 382. Adds support for number values (meter,progress); ↵rwldrn2011-05-201-1/+7
| | | | | | | | Fixes #9319. More Details: - https://github.com/jquery/jquery/pull/382 - http://bugs.jquery.com/ticket/9319
* Unnecessary var removed.timmywil2011-05-181-1/+0
|
* Handle unset value attributes consistently depending on property existence. ↵timmywil2011-05-181-3/+4
| | | | Supplements #9328.
* Make the value hook less obtrusive for elements which do not inherently have ↵timmywil2011-05-181-1/+3
| | | | a value property. Fixes #9328.
* Switched title attribute to getAttributeNode for IE6/7. Fixes #9329.timmywil2011-05-181-1/+1
|
* Use getAttributeNode for ^on attributes in IE6/7 to avoid anonymous function ↵timmywil2011-05-161-1/+1
| | | | wrapper. Fixes #9298.
* Retrieve the class attribute on a form in IE6/7. Fixes 9286.timmywil2011-05-141-1/+3
|
* Removing unnecessary argument type check for boolean hooktimmywil2011-05-131-2/+1
|
* Make sure setting boolean attributes to the same name sets the property to a ↵timmywil2011-05-131-1/+1
| | | | boolean type
* Use prop to retrieve boolean properties (so the selected hook will be used)timmywil2011-05-131-1/+1
|
* Add fallback to prop for the window and document. Switch value to use the ↵timmywil2011-05-101-12/+35
| | | | property instead of the attribute for back compat.
* Remove value check from formHook; other elements can use value hooktimmywil2011-05-071-3/+0
|
* Reduce the boolean list only to those that have corresponding IDLs that ↵timmywil2011-05-071-10/+17
| | | | | | 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.
* Global found in valHook for select(get)timmywil2011-05-071-1/+2
|
* Check empty string instead of specified as specified is inconsistent on the ↵timmywil2011-05-061-2/+2
| | | | name attribute. Fixes #9148.
* 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