aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes/val.js
Commit message (Collapse)AuthorAgeFilesLines
* Core: Use named exports in `src/`Michał Gołębiowski-Owczarek2023-09-121-4/+4
| | | | | | | | | The `default` export is treated differently across tooling when transpiled to CommonJS - tools differ on whether `module.exports` represents the full module object or just its default export. Switch `src/` modules to named exports for tooling consistency. Fixes gh-5262 Closes gh-5292
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-041-1/+1
| | | | | | | | | | | | | The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing when in jQuery source it's usually referring to the old deprecated Trac instance at https://bugs.jquery.com. This change replaces all such Trac references with `trac-NUMBER`. A few of the references came with the Sizzle integration and referred to the Sizzle GitHub bug tracker. Those have been replaced with full links instead. A new entry describing issue reference conventions has been added to README. Closes gh-4993
* Attributes: Refactor val(): don't strip carriage return, isolate IE workaroundsMichał Gołębiowski-Owczarek2020-01-131-22/+19
| | | | | | | | | | Before this change, `val()` was stripping out carriage return characters from the returned value. No test has relied on that. The logic was different for option elements as its custom defined hook was omitting this stripping logic. This commit gets rid of the carriage return removal and isolates the IE-only select val getter to be skipped in other browsers. Closes gh-4585
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-16/+6
| | | | | | | | | | | | | | | | | | | | | | Migrate all source AMD modules to ECMAScript modules. The final bundle is compiled by a custom build process that uses Rollup under the hood. Test files themselves are still loaded via RequireJS as that has to work in IE 11. Tests can now be run in "Load as modules" mode which replaces the previous "Load with AMD" option. That option of running tests doesn't work in IE and Edge as it requires support for dynamic imports. Some of the changes required by the migration: * check `typeof` of `noGlobal` instead of using the variable directly as it's not available when modules are used * change the nonce module to be an object as ECMASscript module exports are immutable * remove some unused exports * import `./core/parseHTML.js` directly in `jquery.js` so that it's not being cut out when the `ajax` module is excluded in a custom compilation Closes gh-4541
* Selector: Inline Sizzle into the selector moduleMichał Gołębiowski-Owczarek2019-07-291-1/+1
| | | | | | | | | | | | | | | | | | This commit removes Sizzle from jQuery, inlining its code & removing obsolete workarounds where applicable. The selector-native module has been removed. Further work on the selector module may decrease the size enough that it will no longer be necessary. If it turns out it's still useful, we'll reinstate it but the code will look different anyway as we'll want to share as much code as possible with the existing selector module. The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are sorted by their first contributions to either of the two repositories. The commit reduces the gzipped jQuery size by 1460 bytes compared to master. Closes gh-4395
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-13/+4
| | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-4/+5
| | | | Fixes gh-3609
* 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-011-3/+4
| | | | | 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-151-4/+4
| | | | | | | | | | | | - 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-151-11/+15
|
* Build: ESLint detailsOleg Gaidarenko2016-06-111-0/+5
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-251-0/+2
| | | | Fixes gh-3073
* Docs: Update support comments related to IEMichał Gołębiowski2016-03-301-1/+1
| | | | 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: return empty array for select-multiple with no valuesTimmy Willison2015-11-051-1/+1
| | | | | Fixes gh-2562 Close gh-2689
* Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 supportMichał Gołębiowski2015-09-141-2/+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-071-19/+27
| | | | Fixes gh-2056
* Core: Standardize indexOf comparisonsRichard Gibson2015-01-101-2/+2
| | | | | | | | not present: `< 0` present: `> -1` at index: `=== N` Closes gh-1984
* 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
|
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-3/+6
|
* Support: clean up comments and Support notationDave Methvin2014-06-101-5/+3
| | | | 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
* Attrs: Simplify an option hookOleg2014-02-051-1/+1
| | | | | | | Since getter was removed in fdd78fad19ea3390cd96971cd29430e36378d137 there is no longer a need to wrap option element in order to get its value Fixes #14756
* Attrs: Remove outdated valHook for option elementOleg2014-01-161-8/+0
| | | | | | | This hook was relevant for BlackBerry 4.7 which is no longer supported. But this code path now raises error in IE10-11 (#14686) in 1.x-master branch. So to just to be safe, also add test for IE issue to this branch too.
* No ticket: fix code style inconsistencies. Closes gh-1361Oleg2013-09-131-1/+3
|
* Flip the switch on checkOnTimmy Willison2013-09-111-1/+1
|
* Separate jQuery.fn.init into its own module (for lighter core dependencies ↵Timmy Willison2013-09-091-1/+2
| | | | across all modules)
* Fix #10814. Make support tests lazy and broken out to components.Michał Gołębiowski2013-09-061-4/+4
|
* Specify support as a dependency wherever it is used. Optimize module order ↵Timmy Willison2013-08-151-1/+2
| | | | to save 15 bytes.
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-0/+157