aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: ESLint detailsOleg Gaidarenko2016-06-111-1/+3
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-1/+1
| | | | Fixes gh-2056
* Core: Follow the AMD specification for defineAlexander O'Mara2015-04-131-1/+1
| | | | | | AMD specification requires the factory argument be defined. Close gh-2179
* No ticket. Restore checking individual src/**/*.js files by jsHint.Michał Gołębiowski2013-09-061-1/+1
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-0/+1
|
* Pull in the Sizzle library dynamically using a submodule and make it part of ↵John Resig2009-10-261-1007/+0
| | | | the jQuery build process.
* Moved a bunch of methods out of the jQuery-specific Sizzle code into ↵John Resig2009-10-261-61/+0
| | | | more-appropriate files, in jQuery itself.
* A follow-up to [6578] (which stopped adding expandos to elements that didn't ↵John Resig2009-09-251-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | have data). That broke jQuery.unique() (so we're now using the unique from Sizzle). Using Sizzle's unique (which also sorts in document order) changed how add, andSelf, parents, nextAll, prevAll, and siblings work. after and before were changed to not use .add() (in order to guarantee their position in the jQuery set). Also, jQuery.data(elem) was updated to return that element's data object (instead of its ID). $("<div/>").after("<span/>") => [ div, span ] (calling after on a disconnected DOM node adds the nodes to the end of the jQuery set) $("<div/>").before("<span/>") => [ span, div ] (calling before on a disconnected DOM node adds the nodes to the beginning of the jQuery set) $("div").add("span") => [ div, span, span, div, span ] (results now come out in document order) $("div").find("code").andSelf(); => [ div, code, code ] (results now come out in document order) Same goes for .parents(), .nextAll(), .prevAll(), and .siblings(). Exception: .parents() will still return the results in reverse document order. jQuery.data(elem) => { object of data } (no longer returns the unique ID assigned to the node)
* Missing a var on a for loop, caused a variable to be leaked.John Resig2009-09-151-1/+1
|
* Missing a var on a for loop, caused a variable to be leaked.John Resig2009-09-151-1/+1
|
* fixed global variables introduced in for loop with missing var-keyword ↵Jörn Zaefferer2009-09-151-1/+1
| | | | (detected via QUnit's no ?noglobals)
* Make sure that at least one argument is provided to .slice(), in accordance ↵John Resig2009-07-231-2/+2
| | | | with the spec. Fixes jQuery bug #4942.
* Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.John Resig2009-07-191-1/+1
|
* Standardizing on .test() and .exec() - moving away from using .match() for ↵John Resig2009-07-191-3/+3
| | | | RegExp. Fixes jQuery bug #4113.
* reverting sizzle updates from previous commit, appears i had an outdated versionBrandon Aaron2009-06-231-3/+3
|
* fix for #4512 and minor sizzle updatesBrandon Aaron2009-06-231-14/+10
|
* Removed some cases of strict errors.John Resig2009-05-201-3/+3
|
* fix :hidden and :visible selectors. fixes #4512Brandon Aaron2009-05-181-2/+12
|
* fix :hidden selector that was accidentally reverted in previous commit, also ↵Brandon Aaron2009-05-041-1/+1
| | | | fixed tests for :hidden selector in IE6
* fix memory leak in IEBrandon Aaron2009-05-041-16/+24
|
* remove trailing spacesBrandon Aaron2009-03-231-14/+14
|
* fix for #4374, gap in :hidden, :visible logicBrandon Aaron2009-03-181-1/+1
|
* Backed out commit [6260], was causing too many problems. We'll have to bite ↵John Resig2009-03-171-12/+9
| | | | the bullet and assume that the incoming result set has array methods. Un-fixes jQuery bug #4250.
* Moved to a generic solution for copying methods over for ↵John Resig2009-02-271-4/+3
| | | | querySelectorAll-using browsers.
* No longer use arguments.callee or RegExp (use new RegExp, instead) for ES ↵John Resig2009-02-261-1/+1
| | | | 3.1 and Caja compatibility. Fixes jQuery bug #4251.
* As it turns out, the context was being started at a higher root than needed ↵John Resig2009-02-261-1/+1
| | | | - fixing this speeds up > selectors.
* Removed the need for the results set to have array methods. Resolves jQuery ↵John Resig2009-02-251-7/+10
| | | | bug #4250.
* Simplified the isXML function, no need to use recursion.John Resig2009-02-251-1/+1
|
* Expose the sort/unique code from Sizzle as Sizzle.uniqueSort().John Resig2009-02-251-10/+13
|
* Landed some improvements for improving the performance of ID-rooted queries ↵John Resig2009-02-251-23/+36
| | | | (e.g. '#foo p'). Fixes jQuery bug #4236.
* Tagged the Sizzle 1.0 release.John Resig2009-02-201-3/+2
|
* Switch to using createRange for element comparision instead of Array indexOf ↵John Resig2009-02-171-7/+9
| | | | checks - thanks for the tip, Ioseb.
* Brought back the compareDocumentPosition code. While it is redundant in ↵John Resig2009-02-171-2/+10
| | | | Firefox it's much faster than using indexOf.
* Added support for class selectors and class attribute selectors on XML ↵John Resig2009-02-161-8/+16
| | | | documents. Fixes jQuery bug #4167.
* Fixed an issue with :nth-child selectors embedded in :not() filters. Fixes ↵John Resig2009-02-161-20/+20
| | | | jQuery bug #4156.
* Changed the jQuery hidden/visible selectors to be a little more precise.John Resig2009-02-161-2/+2
|
* Change the behavior of how :visible and :hidden work. :hidden is when an ↵John Resig2009-02-161-6/+2
| | | | element is display none, a parent element is display none, or the element has a width of 0. :visible is when the element is not display none and all of its ancesotrs are not display none and its width is larger than 0. Fixes jQuery bugs #1349, #3265, and #3895.
* Fixed a bug with certain + selectors failing (Fixes jQuery bug #4023). Also ↵John Resig2009-02-161-9/+18
| | | | tweaked the + and > functions a little bit.
* Fixed the issue where weird characters were being used in ID selectors. ↵John Resig2009-02-151-1/+1
| | | | Fixes jQuery bug #3913.
* Make sure that [name=FOO] searches actually have the specified name (IE ↵John Resig2009-02-151-1/+8
| | | | includes elements that have the ID, as well).
* Added fixes for two different :not() bugs. One with p:not(p.foo) failing and ↵John Resig2009-02-151-3/+1
| | | | another with a weird combination of multiple selectors and filters. Fixes jQuery bug #4101.
* Provide a graceful failover for [name=foo] queries that are looking for ↵John Resig2009-02-141-2/+3
| | | | non-input/iframe/form elements. Fixes jQuery bug #4081.
* The compareDocumentPosition check was extraneous - indexOf works in all the ↵John Resig2009-02-141-13/+5
| | | | other browsers that we need to support.
* Added support for sorting in Safari - when querySelectorAll isn't able to be ↵John Resig2009-02-141-0/+11
| | | | used.
* Oops, the sourceIndex of the documentElement in IE is 1, not 0.John Resig2009-02-141-1/+1
|
* Make sure that elements are returned in document order - and that the ↵John Resig2009-02-141-0/+33
| | | | results are unique.
* Merging a bunch of changes back from Sizzle, by LosTFx.John Resig2009-02-101-65/+76
|
* Reworked the attribute selection code to be able to select false-y values - ↵John Resig2009-02-091-2/+11
| | | | and added some tests to verify that they work well against expandos.
* match[4] is already saved in check - thanks Balazs.John Resig2009-02-091-1/+1
|
* Added a fix for empty attribute selection values. Fixes jQuery bug #3990.John Resig2009-02-071-1/+1
|