aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixing getting/setting classes and makeArray(RegExp) for Blackberry 4.7. ↵John Resig2010-08-231-1/+2
| | | | Fixes #6930, #6931.
* Made it so that you no longer need to build jQuery in order to run the test ↵jeresig2010-03-231-1/+1
| | | | suite (but you'll still need a checkout of QUnit and Sizzle, at least).
* No need to run trim on every class iteration in addClass, thanks for the ↵jeresig2010-02-131-2/+3
| | | | heads-up Leeoniya.
* Make sure that no extra whitespace is leftover after an addClass. Fixes #6050.jeresig2010-02-131-1/+1
|
* spelling mistake (insead)tomviner2010-02-061-1/+1
|
* Make sure the resulting className from removeClass is nicely trimmed. Fixes ↵jeresig2010-02-011-1/+1
| | | | #5988.
* Centralize the logic for throwing exceptions. Fixes #5913.jeresig2010-01-231-1/+1
|
* Removed .removeAttr(Function), it didn't really make sense.jeresig2010-01-071-8/+1
|
* Make sure the state is passed in to the toggleClass attribute function.jeresig2010-01-071-1/+1
|
* Fixed some bugs relating to the setter arg change in val and html. Also ↵jeresig2010-01-071-17/+12
| | | | optimized the code in val a bit.
* Fixing some bugs in the re-tooling of toggleClass, adding in some ↵jeresig2010-01-061-10/+11
| | | | performance optimizations.
* A first pass at making sure that all the setter function arguments receive ↵jeresig2010-01-061-52/+62
| | | | the index of the element and a relevant value to work with. Fixes #5763.
* Make a feature detect for the attribute selected code. Fixes #5702.jeresig2009-12-221-7/+10
|
* The option isn't, necessarily, hidden when this occurs.jeresig2009-12-221-1/+1
|
* Make sure that selected works in Safari on options in optgroups. Fixes #5701.jeresig2009-12-221-3/+8
|
* The logic for specified option values was already handled by .val(), removed ↵jeresig2009-12-221-3/+1
| | | | the unnecessary code.
* Make sure that the correct value is being pulled from checkboxes in Webkit. ↵jeresig2009-12-221-3/+10
| | | | Fixes #5699.
* Make sure that the correct value is retreived for options that have no value ↵jeresig2009-12-221-1/+3
| | | | specified, in IE 6. Continues to fix #5697.
* Made sure that the .val() logic for setting radios and checkboxes was ↵jeresig2009-12-221-1/+1
| | | | correct. Fixes #5698.
* Fixed the issue where getting an empty value was impossible. Fixes #5697.jeresig2009-12-221-1/+1
|
* Standardize on using double-quotes for string literals.jeresig2009-12-211-2/+2
|
* Made a number of spacing changes to bring the code more-inline with the ↵jeresig2009-12-211-5/+7
| | | | jQuery Core Style Guideline.
* Disabled the passthrough .attr(method_name) functionality. You can now use ↵jeresig2009-12-181-2/+2
| | | | it if you do: .attr({method_name: value}, true) OR as an easy initialization method: jQuery('<div/>', {html: '...', id: 'test'}).
* Backing out the change from 841f9ff7a1815b521044aeeb39ccbe70fa688201, it was ↵jeresig2009-12-181-8/+1
| | | | ineffectual in Internet Explorer. Keeping the broken test case, for now, so that we can check into the issue some more.
* Brought the attributes module more inline with the jQuery style guidelines.jeresig2009-12-181-35/+58
|
* Stick with just getter/setters in attrFn.jeresig2009-12-171-5/+1
|
* Reverted accidental commit in 5197ac9fc8aa71c2ebc0d7217f41a3679eb1b902.jeresig2009-12-161-1/+1
|
* Enforce that hasClass and removeClass work even with tabs and endlines in ↵Batiste Bieler2009-12-141-2/+4
| | | | class attributes. Fixes #5505.
* Disable getting values using the .attr() function shortcut until the full ↵jeresig2009-12-141-1/+1
| | | | implications of which can be explored.
* Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.John Resig2009-12-111-2/+2
|
* Missed the case of bind in the new attr multi-setter.John Resig2009-12-101-1/+2
|
* Restrict the attr quick setters to only methods that specifically ask for ↵John Resig2009-12-091-1/+16
| | | | the functionality. Fixes #5612.
* Fix up whitespace and a couple of glitches.Yehuda Katz2009-12-091-20/+13
|
* Add function values to addClass, removeClass, toggleClass, text, and removeAttrYehuda Katz2009-12-091-5/+28
|
* Handle changing form attributes correctly when there is a child element with ↵David Petersen2009-12-091-1/+7
| | | | the same name. Fixes #4299
* added curly braces around all if/else statementsKarl Swedberg2009-11-281-30/+34
|
* jquery attributes: closes #5234. attr() supports jQuery.fn methods.Ariel Flesler2009-09-151-0/+4
|
* jquery core: Closes #5189. Added a generic function to handle ↵Ariel Flesler2009-09-091-29/+1
| | | | getting/setting key-value/setting a hash.
* Removed jQuery.className.(has|remove|add) in favor of ↵John Resig2009-09-081-36/+59
| | | | .addClass/removeClass/hasClass. Also rewrote the functions for additional performance.
* Fix for incorrect options being selected (noticed same problem with ↵John Resig2009-07-231-4/+2
| | | | radio/checkbox and fixed it there, as well). Fixes #4962.
* Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.John Resig2009-07-191-2/+2
|
* Standardizing on .test() and .exec() - moving away from using .match() for ↵John Resig2009-07-191-3/+3
| | | | RegExp. Fixes jQuery bug #4113.
* Support for .foo(Function) and testing. TODO: More testsYehuda Katz2009-07-121-5/+15
|
* Fixes regression in .attr(), patch by David Flanagan. Fixes #4884.John Resig2009-07-111-24/+20
|
* make sure toggleClass does not delete classNames when forcefully removing ↵Brandon Aaron2009-05-021-5/+4
| | | | classes and they are already removed
* toggleClass can now toggle multiple classNames (space seperated list) and ↵Brandon Aaron2009-05-021-3/+19
| | | | toggle the whole className. fixes #3825.
* remove trailing spacesBrandon Aaron2009-03-231-2/+2
|
* decoupling styles retrieval from the attr methodBrandon Aaron2009-03-221-164/+15
|
* moving some vars from manipulations.js to attributes.jsBrandon Aaron2009-03-221-0/+5
|
* breaking jquery out into smaller modules. added attributes.js, ↵Brandon Aaron2009-03-181-0/+390
manipulation.js, and traversing.js