aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes
Commit message (Collapse)AuthorAgeFilesLines
* Build: Correct code indentations based on jQuery Style GuideWonseop Kim2020-05-051-3/+3
| | | | | | | | | | | 1. Correct code indentations based on jQuery Style Guide (contribute.jquery.org/style-guide/js/#spacing). 2. Add rules to "src/.eslintrc.json" to enable "enforcing consistent indentation", with minimal changes to the current code. Closes gh-4672 (cherry picked from 3d62d5704989f17d3a20ae7521d52e9c8c60b4ee)
* Build: ESLint: forbid unused function parametersMichał Gołębiowski-Owczarek2019-09-261-1/+1
| | | | | | | | | | | | | | | | This commit requires all function parameters to be used, not just the last one. In cases where that's not possible as we need to match an external API, there's an escape hatch of prefixing an unused argument with `_`. This change makes it easier to catch unused AMD dependencies and unused parameters in internal functions the API of which we may change at will, among other things. Unused AMD dependencies have been removed as part of this commit. Closes gh-4381 (cherry-picked from 438b1a3e8a52d3e4efd8aba45498477038849c97)
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-152-8/+10
| | | | Fixes gh-3609
* Attributes: allow array param in add/remove/toggleClassTimmy Willison2018-01-081-8/+19
| | | | | | | | | +30 bytes instead of +182 Thanks to @faisaliyk for the first pass on this feature. Fixes gh-3532 Close gh-3917
* Build: fix tests in AMD modeTimmy Willison2017-03-061-2/+3
| | | | - nodeName was included at the wrong spot in dependency lists
* Core: Deprecate jQuery.nodeNamekaran-962017-03-012-5/+7
| | | | | Fixes gh-3475 Closes gh-3505
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-301-2/+2
| | | | | Fixes gh-2961 Closes gh-3278
* Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapseTimmy Willison2016-09-153-24/+22
| | | | | | | | | | | | - Renames and changes rnotwhite to focus on HTML whitespace chars - Change internal use of jQuery.trim to more accurate strip and collapse - Adds tests to ensure HTML space characters are retained where valid - Doesn't add tests where the difference is inconsequential and existing tests are adequate. Fixes gh-3003 Fixes gh-3072 Close gh-3316
* Build: Update eslint config and fix associated errorsOleg Gaidarenko2016-07-152-16/+27
|
* Build: More ESLint related changesOleg Gaidarenko2016-07-091-0/+8
|
* Build: ESLint detailsOleg Gaidarenko2016-06-111-0/+5
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Attributes: Avoid infinite recursion on non-lowercase attribute gettersMichał Gołębiowski2016-06-031-5/+7
| | | | | | | | | | | | Attribute hooks are determined for the lowercase versions of attribute names but this has not been reflected in the bool attribute hooks. The code that temporarily removed a handler to avoid an infinite loop was removing an incorrect handler causing stack overflow. Fixes gh-3133 Refs gh-2914 Refs gh-2916 Closes gh-3134
* Docs: Fix an incorrect comment in the attributes moduleMichał Gołębiowski2016-06-031-1/+1
| | | | | Attributes are no longer always treated as lowercase, although hooks for them are. This commit fixes a no longer correct comment.
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-255-0/+10
| | | | Fixes gh-3073
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-302-2/+2
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs: Update support comments related to IEMichał Gołębiowski2016-03-302-3/+3
| | | | All support comments were checked for Edge applicability.
* Docs:Tests: Remove legacy code & add support comments where neededMichał Gołębiowski2016-03-301-0/+1
| | | | | | | | This commits backports some changes done in the patch to the then-existing compat branch that removed support for old browsers and added some support comments. Refs 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278
* Attributes: strip/collapse whitespace for set values on selectsTimmy Willison2016-03-171-5/+12
| | | | | Fixes gh-2978 Close gh-3002
* Attributes: remove redundant parent checkTimmy Willison2016-03-071-1/+1
|
* Attributes: remove the lower-casing logic for attribute namesMichał Gołębiowski2016-02-171-10/+2
| | | | | | | | | | | | | | | jQuery used to lower-case the attribute names passed to the .attr setter to workaround an old IE issue. This is no longer in jQuery 3.0 and removing it may even "accidentally" make this API sort-of work on SVGs (see gh-2910) so why not. Manual lowercasing had to be added to the place where the proper attrHook is retrieved so that it works regardless of the casing of the provided name. A regular `toLowerCase()` is enough there as those few attributes don't contain any non-ASCII characters. Fixes gh-2914 Closes gh-2916
* Attributes: Add a support comment & fix a link @ tabIndex hookMichał Gołębiowski2016-02-031-1/+2
| | | | Ref gh-2664
* Attributes: fix setting selected on an option in IE<=11Timmy Willison2016-01-191-0/+16
| | | | | Fixes gh-2732 Close gh-2840
* Revert "Attributes: Remove undocumented .toggleClass( boolean ) signature"Timmy Willison2016-01-071-17/+52
| | | | | | This reverts commit 53f798cf4d783bb813b4d1ba97411bc752b275f3. - Turns out this is documented, even if not fully. Need to deprecate before removal.
* Attributes: exclusively lowercase A-Z in attribute namesTimmy Willison2015-12-021-2/+9
| | | | | Fixes gh-2730 Close gh-2749
* Attributes: return empty array for select-multiple with no valuesTimmy Willison2015-11-051-1/+1
| | | | | Fixes gh-2562 Close gh-2689
* Attributes: do not set properties to false when removing booleansTimmy Willison2015-10-211-10/+2
| | | | Fixes gh-1759
* Attributes: fix tabIndex on <img> in IE11Joelle Fleurantin2015-10-181-5/+15
| | | | | Fixes gh-2647 Closes gh-2664
* Attributes: removeClass() -> attr("class", "")Thomas Tortorini2015-10-181-23/+21
| | | | | | - Classes simpliciation Close gh-2465
* Attributes: Use simpler boolean check vs a function callDave Methvin2015-10-181-5/+2
| | | | Ref gh-2491
* Attributes: Remove undocumented .toggleClass( boolean ) signatureDave Methvin2015-10-181-54/+22
| | | | | Fixes gh-2491 Close gh-2618
* Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 supportMichał Gołębiowski2015-09-142-7/+1
| | | | | | | | Drop non-critical workarounds for Android 2.3. Fixes gh-2483 Fixes gh-2505 Closes gh-2581
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-075-61/+73
| | | | Fixes gh-2056
* Core: organize prop & attr code to be similarGilad Peleg2015-06-232-54/+56
| | | | Closes gh-2384
* Attributes: add SVG class manipulationTimmy Willison2015-05-121-29/+43
| | | | | | | | | - Note: support for SVG is limited in jQuery, but this is one area where the cost vs benefit ratio was acceptable. Fixes gh-2199 Close gh-2268
* Core: Align branches: remove an unused variable, add commentsMichał Gołębiowski2015-04-271-2/+2
| | | | Closes gh-2233
* Attributes: remove unnecessary element null checkBastian Buchholz2015-04-201-1/+1
| | | | Close gh-2201
* Attributes: revert returning null for non-existant attributesTimmy Willison2015-03-301-1/+6
| | | | Ref https://github.com/jquery/jquery/issues/2118
* Attributes: revert returning null for non-elementsTimmy Willison2015-03-161-1/+1
|
* Attributes: fix failing test for new return valueTimmy Willison2015-03-161-1/+1
|
* Attributes: return null when attribute does not existWinston Howes2015-03-161-6/+1
| | | | | Fixes gh-2118 Close gh-2129
* Core: Standardize indexOf comparisonsRichard Gibson2015-01-102-4/+4
| | | | | | | | not present: `< 0` present: `> -1` at index: `=== N` Closes gh-1984
* Build: Don't assume the browser environment; smoke test on Node w/ jsdomMichał Gołębiowski2014-12-261-1/+2
| | | | | Fixes gh-1950 Closes gh-1949
* Attributes: Use the option val hook in select val hook and simplify itMichał Gołębiowski2014-12-081-7/+5
| | | | | | | | | The hook is still defined; not using it could cause issues in IE<11. Also, IE10 no longer throws when value not set but it still doesn't trim the value. IE11 has all those issues fixed; support comments are updated. Fixes gh-1902 Closes gh-1901
* Misc: Adjust comments & docs to dropping IE<8 in jQuery CompatMichał Gołębiowski2014-11-041-1/+1
|
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-11-031-1/+1
| | | | | | | | That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Closes gh-1820 Refs gh-1815
* Attr: Use typeof check for getAttribute methodOleg Gaidarenko2014-09-021-1/+1
| | | | Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b
* Core: Drop strundefined variableChris Antaki2014-09-022-6/+4
|
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-174-13/+25
|
* Support: clean up comments and Support notationDave Methvin2014-06-105-22/+16
| | | | Closes gh-1577
* Attributes: Trim whitespace from option text when returned as a valueJohn Hoven2014-03-201-0/+10
| | | | | | | | | | Fixes #14858 Ref #14686 Closes gh-1531 (cherry picked from commit 9ec429cf6270e455aba4eba85f4db80e633806b6) Conflicts: src/attributes/val.js