aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
Commit message (Collapse)AuthorAgeFilesLines
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-17/+12
| | | | | | | | | | | | | | | | | | | | | | 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
* Build: ESLint: forbid unused function parametersMichał Gołębiowski-Owczarek2019-05-131-3/+3
| | | | | | | | | | | | | 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
* Traversing: Fix `contents()` on `<object>`s with children in IEMichał Gołębiowski-Owczarek2019-05-081-2/+9
| | | | | | | | | The original fix didn't account for the fact that in IE `<object>` elements with no `data` attribute have an object `contentDocument`. The fix leverages the fact that this special object has a null prototype. Closes gh-4390 Ref gh-4384 Ref gh-4385
* Traversing: Fix `contents()` on `<object>`s with childrenPat O'Callaghan2019-05-061-1/+1
| | | | Fixes gh-4384 Closes gh-4385
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-1/+1
| | | | | | | | | | | 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
* Traversing: $.fn.contents() support for objectLuis Emilio Velasco Sanchez2018-05-141-12/+12
| | | | | Fixes gh-4045 Closes gh-4046
* Build: fix tests in AMD modeTimmy Willison2017-03-061-1/+2
| | | | - 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
* Traversing: $.fn.contents() supports HTMLTemplateElement南漂一卒2017-01-291-1/+12
| | | | | Fixes gh-3436 Closes gh-3462
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-251-0/+2
| | | | Fixes gh-3073
* Traversing: Never let .closest() match positional selectorsRichard Gibson2016-01-131-13/+14
| | | | | Fixes gh-2796 Close gh-2818
* Traversing: Don't expose jQuery.dir & jQuery.siblingMichał Gołębiowski2015-09-081-38/+11
| | | | | | | | jQuery.dir & jQuery.sibling are undocumented internal APIs; they shouldn't be exposed. Fixes gh-2512 Closes gh-2525
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-18/+21
| | | | Fixes gh-2056
* Selector: add jQuery.uniqueSort; deprecate jQuery.uniqueTimmy Willison2015-05-041-3/+3
| | | | Fixes gh-2228
* Support: clean up comments and Support notationDave Methvin2014-06-101-4/+3
| | | | Closes gh-1577
* traversing: Optimise .add by not using makeArrayTimo Tijhof2013-12-301-6/+5
| | | | Closes gh-1430
* Fix #14190: Remove unnecessary assignment in .closest. Close gh-1411.Marian Sollmann2013-11-061-2/+2
| | | | | | | | (cherry picked from commit 346b031af9e3b315ef351a9cc7fee56f930cf346) Conflicts: src/traversing.js
* Separate jQuery.fn.init into its own module (for lighter core dependencies ↵Timmy Willison2013-09-091-95/+5
| | | | across all modules)
* Apply consistent ordering in all modules. -38 bytes. Order modules like ↵Timmy Willison2013-09-091-74/+73
| | | | functions > jQuery.extend > jQuery.fn.extend.
* Break jQuery.access out into its own module to separate it from core; Adjust ↵Timmy Willison2013-09-091-0/+1
| | | | CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax.
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-0/+2
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-3/+9
|
* Simplification of jQuery#contents methodOleg2013-05-271-3/+1
|
* Fix #13846: .prev sort directionRichard Gibson2013-05-011-2/+3
|
* Fix #13819: .parent sort directionRichard Gibson2013-04-241-1/+1
| | | | (cherry picked from commit 6a816ec95fd96d130a4af67a28873d9daa66a328)
* Fix #13797: .is with single-node contextRichard Gibson2013-04-201-8/+10
| | | | (cherry picked from commit 4f786ba4d2a5544cb48f589d2659d6cab84efc34)
* No ticket: Reduce .findRichard Gibson2013-04-201-10/+10
| | | | (cherry picked from commit 85b3c82445d9e88c6e747a33ad97f5f9e35a7d35)
* Fix #13539: Utilize Sizzle hooks. Close gh-1215.Richard Gibson2013-04-051-31/+26
| | | | (cherry picked from commit 4ef516903e6e48bce388ca47c1ed88a447199fa1)
* Remove an unused support check, correct a comment. Close gh-1211.Michał Gołębiowski2013-04-031-1/+1
|
* Ref #13283, move .andSelf() to deprecated.js. Close gh-1170.Nguyen Phuc Lam2013-02-261-2/+0
|
* Fix #13265 #13332: traversing methods with text nodes. Close gh-1145.Richard Gibson2013-02-131-24/+35
|
* Fix #13349. No need to sort simple .find() cases.Dave Methvin2013-01-291-1/+1
|
* Code styleOleg2012-12-191-1/+2
|
* Reduce traversing moduleOleg2012-12-191-71/+74
|
* Ref #13019 and gh-1062. Use parentNode check instead of isDisconnected().Dave Methvin2012-12-091-6/+0
|
* Must attach the .selector to the new jQuery object.Dave Methvin2012-11-011-1/+2
|
* Follow-up for .selector property removalOleg2012-11-011-5/+2
|
* Fix #12816. Ensure .find() result are DOM ordered.Dave Methvin2012-10-311-30/+10
|
* Fix #12009. $().find( DOMElement ) should pushStack properly. Close gh-927.Mike Sherov2012-10-301-17/+24
|
* Fix #9469. Remove semi-functional .selector property. Close gh-1006.Dave Methvin2012-10-241-5/+7
| | | | Saved 65 bytes.
* no ticket: remove and enforce unused vars in jshintMike Sherov2012-10-171-2/+2
|
* Update Sizzle: allows disconnected sorting. Change add to always sort with ↵Timmy Willison2012-10-161-3/+1
| | | | added nodes, even when disconnected.
* Return correct index for no-arg index() calls. Fixes #10977. Closes gh-971MORGAN2012-10-161-1/+1
|
* Fix a regression where has with multiple contexts was not filtering ↵Timmy Willison2012-07-271-3/+3
| | | | correctly. Test added.
* Remove unnecessary elseTimmy Willison2012-07-251-3/+1
|
* Fail silently if closest is somehow called on a document. Fixes #10726.Timmy Willison2012-07-251-4/+1
|
* Support event delegation with relative selectors. Fixes #10762. Closes gh-860.Richard Gibson2012-07-231-4/+4
|
* Follow the style guide, lose 72 bytes! Closes gh-840.Mike Sherov2012-07-091-10/+14
|
* Optimization of array operations, closes gh-844.Oleg2012-07-061-1/+1
|