aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector
Commit message (Collapse)AuthorAgeFilesLines
* Selector: Inline Sizzle into the selector module: 3.x version (#5113)Michał Gołębiowski-Owczarek2022-12-142-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes Sizzle from jQuery, inlining its code & removing obsolete workarounds where applicable. 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 main `selector` module can be disabled in favor of `selector-native` via: grunt custom:-selector For backwards compatibility, the legacy `sizzle` alias is also supported (it will be dropped in jQuery `4.0.0`): grunt custom:-selector Sizzle tests have been ported to jQuery ones. Ones that are not compatible with the `selector-native` module are disabled if the regular selector module is excluded. Backwards compatibility is still kept for all `Sizzle` utils - they continue to be available under `jQuery.find` - but the primary implementation is now attached directly to jQuery. Some selector utils shared by `selector` & `selector-native` have been extracted & deduplicated. `jQuery.text` and `jQuery.isXMLDoc` have been moved to the `core` module. The commit reduces the gzipped jQuery size by 851 bytes compared to the `3.x-stable` branch. Closes gh-5113 Ref gh-4395 Ref gh-4406
* Reorganzing the jQuery source (first phase).John Resig2007-09-082-634/+0
|
* Added a new :animated selector - only selects elements that are currently ↵John Resig2007-09-081-1/+4
| | | | being animated.
* Integration of Mike Alsup's excellent form serialization code. The benefits ↵John Resig2007-09-051-22/+22
| | | | | | | | | | | | | | | | | | are as follows: - New method: .serializeArray() This returns an array of name/value pairs representing the contents of a form, or individual input elements. - Enhancement: .serialize() The results are correct now (as opposed to the mess from before), and allows you to serializes forms directly (rather than just the input elements). - Enhancement: .val() This now returns the correct value when dealing wih selects. Additionally, when dealing with multiple selects, it returns an array of values. Based upon Mike's code: http://malsup.com/jquery/form/comp/form.js and test suite: http://malsup.com/jquery/form/comp/test.html
* Removed all deprecated functionality for jQuery 1.2. A full list of what was ↵John Resig2007-09-042-92/+43
| | | | removed can be found here: http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-for-12/
* Removed all inline documentation. The current version of all documentation ↵John Resig2007-09-041-36/+0
| | | | is stored online, on the wiki: http://docs.jquery.com/
* Added support for a new :header psuedo-selector (only selects H1-H6 elements).John Resig2007-08-312-2/+7
|
* Fixed the issue where $("body").find("div#foo") would ignore the specified ↵John Resig2007-08-272-2/+4
| | | | tag name. (Bug #1543)
* Marked all the appropriate methods as being deprecated for the 1.1.4 release ↵John Resig2007-08-241-0/+7
| | | | (in preparation for 1.2).
* Fixed use of eval() and new Function() to work within the correct scope (and ↵John Resig2007-08-221-1/+1
| | | | not throw errors).
* Added the new :has() selector (Bug #1521)John Resig2007-08-212-2/+6
|
* Fix for a selector speed regression (calling a simple selector many times ↵John Resig2007-08-211-5/+12
| | | | | | | | | | resulted in a significant speed down). This has been fixed by breaking the RegExps out into the global scope. This required that a closure be implemented around the full jQuery script (which is now the case). Some simple changes were made in addition to the RegExp one, allowing for some greater flexibility on our part - and hopefully better compression. Speed results: http://dev.jquery.com/~john/ticket/1351/ vs. http://dev.jquery.com/~john/ticket/1351/113.html vs. http://dev.jquery.com/~john/ticket/1351/112.html
* Added a fix for IE returning comment nodes in * queries. I put the logic in ↵John Resig2007-08-191-1/+6
| | | | $.merge() but added a conditional such that the speed hit only effects IE users. (Bug #1155)
* The test for underscore selectors broke under Opera, so the element is now ↵John Resig2007-07-301-3/+12
| | | | loaded via Ajax and tested. (bug #1084)
* Added a fix for Safari's broken CSS getComputedStyle accessing. ↵John Resig2007-07-291-1/+1
| | | | Additionally, added a fix for Safari mis-reporting @selected for display: none options. The test suite is now completely passing in Safari 3. (Bug #1349)
* Integrated the custom fx test suite into the main test suite. All tests are ↵John Resig2007-07-291-11/+11
| | | | now run automatically. Removed the old suite, as it was no longer needed.
* $("#foo", xml) would always return an empty set, fixed (bug #877). ↵John Resig2007-07-251-1/+1
| | | | Additionally, a bug in jQuery.isXMLDoc(xmlDoc) was discovered, if the element was, in fact, an XML document.
* Added a fix for relative // - $("//div",this) (bug #1418)John Resig2007-07-252-2/+3
|
* Added a fix for h1 + h2 not working. (Bug #1361)John Resig2007-07-201-1/+1
|
* Final fix for Safari crasher (bug #1331).John Resig2007-07-061-1/+1
|
* Fix for Safari 1.3 crash (bug #1331).John Resig2007-07-051-1/+1
|
* fix little typo in commentEd Engelhardt2007-07-051-1/+1
|
* Added fix for broken child selectors in XML documents, bug #1346.John Resig2007-07-051-2/+2
|
* Added a fix for bug #1331, which caused Safari 1.3 to crash.John Resig2007-07-041-1/+1
|
* Fixed bug that prevented $= from working on elements that didn't have the ↵John Resig2007-07-041-1/+1
| | | | specified attribute.
* Who am I kidding |= is useless.John Resig2007-06-291-2/+2
|
* Added minor support for |= and ~= selectors.John Resig2007-06-291-2/+2
|
* Added fix for :nth-child(n).John Resig2007-06-291-1/+1
|
* Added fix for broken :only-child.John Resig2007-06-291-1/+1
|
* Added extra last-child test.John Resig2007-06-291-1/+2
|
* Added massive speed improvements to selectors. Also added support for ↵John Resig2007-06-291-60/+98
| | | | :nth-child(An+B) syntax.
* Fix for #1169Brandon Aaron2007-05-132-8/+10
|
* Rev [1827] broke the two XPath sibling selectors.John Resig2007-05-011-2/+2
|
* We're not adding new selector features in until a new full release. Please ↵John Resig2007-05-012-8/+2
| | | | discuss features like this in the dev mailing list, and in the bug tracker, before committing code.
* TDD. Broken test case, need to fix xpath parser...Corey Jewett2007-04-301-1/+2
|
* Query now throws no warnings under strict mode in Firefox (ticket #922). In ↵John Resig2007-04-291-15/+16
| | | | fixing this, revision [1771] was discovered and reverted (no API changes are being added in at this time), and a couple un-functioning test cases were fixed (array comparisions were being done for objects).
* Forgot to remove the test cases for XPath [n]. (Ticket #995)John Resig2007-04-281-5/+1
|
* Removed support for the XPath [n] - we weren't doing it right, and it would ↵John Resig2007-04-281-1/+1
| | | | actually require a lot of code to "do it right" (much more than what the feature is immediately worth). See ticket #995.
* Added support for finding elements that have underscores in their name ↵John Resig2007-04-282-5/+7
| | | | (along with other allowed characters). Fix for ticket #1084.
* Add RegExp style xpath attributes and testcases. e.g. [@foo =~ /bar/i] and ↵Corey Jewett2007-04-132-2/+7
| | | | [@foo !~ /bar/]
* Added a number of additional speed gains (we now hold our own against Dojo ↵John Resig2007-03-261-28/+35
| | | | and DOMQuery), touched up some of the selector code, fixed some minor bugs, fixed a bug with triggerEvent in Opera, fixed some more test case bugs.
* Opera is also vulnerable to the getElementById-returning-name issue, fixed ↵John Resig2007-03-251-7/+6
| | | | it there as well. Also had to tweak the UTF8 regexps to work in Safari (Safari doesn't support \uXXXX in RegExps, lame.)
* Fixed some more bugs with the test suite, made some minor file size tweaks ↵John Resig2007-03-252-16/+15
| | | | to the selector code.
* Cleaned up a lot of the test suite - reorganized and renamed tests. Added a ↵John Resig2007-03-251-8/+5
| | | | new triggerEvent() method to the test runner to help us better test actual event interactions.
* Added test for #945Jörn Zaefferer2007-03-251-0/+6
|
* (no commit message)John Resig2007-03-252-3/+14
|
* Added support for escaping selectors in ID and Classname queries (#143). You ↵John Resig2007-03-252-20/+25
| | | | need to be sure to double-escape selectors, though, as JavaScript requires it to get the right effect.
* Added UTF8 Selector support (#1001) and fixed infinite selector loops ↵John Resig2007-03-252-169/+204
| | | | (#1025). You can now select elements by UTF8-based IDs, classes, and attributes.
* Merged my speed improvements into the jQuery core (is actually 200b smaller ↵John Resig2007-03-241-34/+8
| | | | now!). Additionally, added in some better reporting to the test suite, and fixed a bug with how selector tests were performmed.
* Added a fix for #891 (Using a /foo selector within a non-document context.)John Resig2007-03-241-1/+1
|