Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Selector: Inline Sizzle into the selector module: 3.x version (#5113) | Michał Gołębiowski-Owczarek | 2022-12-14 | 2 | -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 Resig | 2007-09-08 | 2 | -634/+0 |
| | |||||
* | Added a new :animated selector - only selects elements that are currently ↵ | John Resig | 2007-09-08 | 1 | -1/+4 |
| | | | | being animated. | ||||
* | Integration of Mike Alsup's excellent form serialization code. The benefits ↵ | John Resig | 2007-09-05 | 1 | -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 Resig | 2007-09-04 | 2 | -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 Resig | 2007-09-04 | 1 | -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 Resig | 2007-08-31 | 2 | -2/+7 |
| | |||||
* | Fixed the issue where $("body").find("div#foo") would ignore the specified ↵ | John Resig | 2007-08-27 | 2 | -2/+4 |
| | | | | tag name. (Bug #1543) | ||||
* | Marked all the appropriate methods as being deprecated for the 1.1.4 release ↵ | John Resig | 2007-08-24 | 1 | -0/+7 |
| | | | | (in preparation for 1.2). | ||||
* | Fixed use of eval() and new Function() to work within the correct scope (and ↵ | John Resig | 2007-08-22 | 1 | -1/+1 |
| | | | | not throw errors). | ||||
* | Added the new :has() selector (Bug #1521) | John Resig | 2007-08-21 | 2 | -2/+6 |
| | |||||
* | Fix for a selector speed regression (calling a simple selector many times ↵ | John Resig | 2007-08-21 | 1 | -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 Resig | 2007-08-19 | 1 | -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 Resig | 2007-07-30 | 1 | -3/+12 |
| | | | | loaded via Ajax and tested. (bug #1084) | ||||
* | Added a fix for Safari's broken CSS getComputedStyle accessing. ↵ | John Resig | 2007-07-29 | 1 | -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 Resig | 2007-07-29 | 1 | -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 Resig | 2007-07-25 | 1 | -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 Resig | 2007-07-25 | 2 | -2/+3 |
| | |||||
* | Added a fix for h1 + h2 not working. (Bug #1361) | John Resig | 2007-07-20 | 1 | -1/+1 |
| | |||||
* | Final fix for Safari crasher (bug #1331). | John Resig | 2007-07-06 | 1 | -1/+1 |
| | |||||
* | Fix for Safari 1.3 crash (bug #1331). | John Resig | 2007-07-05 | 1 | -1/+1 |
| | |||||
* | fix little typo in comment | Ed Engelhardt | 2007-07-05 | 1 | -1/+1 |
| | |||||
* | Added fix for broken child selectors in XML documents, bug #1346. | John Resig | 2007-07-05 | 1 | -2/+2 |
| | |||||
* | Added a fix for bug #1331, which caused Safari 1.3 to crash. | John Resig | 2007-07-04 | 1 | -1/+1 |
| | |||||
* | Fixed bug that prevented $= from working on elements that didn't have the ↵ | John Resig | 2007-07-04 | 1 | -1/+1 |
| | | | | specified attribute. | ||||
* | Who am I kidding |= is useless. | John Resig | 2007-06-29 | 1 | -2/+2 |
| | |||||
* | Added minor support for |= and ~= selectors. | John Resig | 2007-06-29 | 1 | -2/+2 |
| | |||||
* | Added fix for :nth-child(n). | John Resig | 2007-06-29 | 1 | -1/+1 |
| | |||||
* | Added fix for broken :only-child. | John Resig | 2007-06-29 | 1 | -1/+1 |
| | |||||
* | Added extra last-child test. | John Resig | 2007-06-29 | 1 | -1/+2 |
| | |||||
* | Added massive speed improvements to selectors. Also added support for ↵ | John Resig | 2007-06-29 | 1 | -60/+98 |
| | | | | :nth-child(An+B) syntax. | ||||
* | Fix for #1169 | Brandon Aaron | 2007-05-13 | 2 | -8/+10 |
| | |||||
* | Rev [1827] broke the two XPath sibling selectors. | John Resig | 2007-05-01 | 1 | -2/+2 |
| | |||||
* | We're not adding new selector features in until a new full release. Please ↵ | John Resig | 2007-05-01 | 2 | -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 Jewett | 2007-04-30 | 1 | -1/+2 |
| | |||||
* | Query now throws no warnings under strict mode in Firefox (ticket #922). In ↵ | John Resig | 2007-04-29 | 1 | -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 Resig | 2007-04-28 | 1 | -5/+1 |
| | |||||
* | Removed support for the XPath [n] - we weren't doing it right, and it would ↵ | John Resig | 2007-04-28 | 1 | -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 Resig | 2007-04-28 | 2 | -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 Jewett | 2007-04-13 | 2 | -2/+7 |
| | | | | [@foo !~ /bar/] | ||||
* | Added a number of additional speed gains (we now hold our own against Dojo ↵ | John Resig | 2007-03-26 | 1 | -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 Resig | 2007-03-25 | 1 | -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 Resig | 2007-03-25 | 2 | -16/+15 |
| | | | | to the selector code. | ||||
* | Cleaned up a lot of the test suite - reorganized and renamed tests. Added a ↵ | John Resig | 2007-03-25 | 1 | -8/+5 |
| | | | | new triggerEvent() method to the test runner to help us better test actual event interactions. | ||||
* | Added test for #945 | Jörn Zaefferer | 2007-03-25 | 1 | -0/+6 |
| | |||||
* | (no commit message) | John Resig | 2007-03-25 | 2 | -3/+14 |
| | |||||
* | Added support for escaping selectors in ID and Classname queries (#143). You ↵ | John Resig | 2007-03-25 | 2 | -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 Resig | 2007-03-25 | 2 | -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 Resig | 2007-03-24 | 1 | -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 Resig | 2007-03-24 | 1 | -1/+1 |
| |