John Resig
58a17e6e6d
Bumping the version of Sizzle up to 0.9.2.
2009-01-21 23:33:01 +00:00
John Resig
d45f193948
A follow-up for bug #3945 . ID selectors don't work in querySelectorAll on XML documents, so we just fall back to the normal engine.
2009-01-21 23:31:29 +00:00
John Resig
7d9d210540
Make sure that [name=foo] and #id selectors don't use the native methods on XML documents (since id and name attributes may not be defined by a DTD and will return nothing instead. Fixes jQuery bug #3945 .
2009-01-21 23:19:30 +00:00
John Resig
f9a5849723
Now handle the case where Safari's querySelectorAll fails on uppercase characters in quirks mode. Added a test to check for it and re-worked some of the existing tests to better handle document order issues. Fixes jQuery bug #3840 .
2009-01-21 22:57:07 +00:00
John Resig
9b3804a8ec
After discussing it with a number of users I've decided to revert the change to [name!=value]. It is now equal to :not([attr!=value]). Attempting to switch it to [attr]:not([attr!=value]) produced some really non-obvious results and confused users. Fixes jQuery bug #3884 .
2009-01-21 22:36:21 +00:00
John Resig
626961c4a5
CHILD positions were being cached improperly. Tweaked it and added a test to make sure it doesn't happen again. Fixes jQuery bug #3924 .
2009-01-21 22:01:50 +00:00
John Resig
db10da345e
Fixed a missing semicolon. Fixes jQuery bug #3927 .
2009-01-20 19:58:19 +00:00
John Resig
0468e31bf7
Added a performance improvement to preFilter.CLASS from LosT on the Sizzle.js mailing list.
2009-01-20 19:47:15 +00:00
John Resig
aa7616cf9a
Added support for a[name^='foo['] style selectors. Fies jQuery bug #3928 .
2009-01-20 19:44:08 +00:00
John Resig
6799982835
Made sure that a child element exists before the check is done, fixes jQuery bug #3870 .
2009-01-19 23:04:03 +00:00
John Resig
82e8d11c12
Re-worked the logic for handling isXML detection.
2009-01-19 21:57:18 +00:00
John Resig
d6e541426d
Fixed the logic for determining if an XML file is being used. Fixes jQuery bug #3896 .
2009-01-19 18:56:02 +00:00
John Resig
8e8d7ade43
Merged some recent fixes in from Sizzle.
2009-01-19 18:09:11 +00:00
John Resig
6dc30ae7f6
Merged Sizzle changes back into jQuery.
2009-01-13 16:40:19 +00:00
John Resig
944484c3fe
Merged in from Sizzle - a change to child filter selector logic.
2009-01-12 16:02:55 +00:00
John Resig
95094d1685
Merged in a fix from Sizzle for :not(:first).
2009-01-12 14:45:58 +00:00
John Resig
2e42c5b044
Merging the latest from Sizzle.
2009-01-11 19:45:04 +00:00
John Resig
f9e0b1ed7a
Merged in a missing argument from Sizzle.
2009-01-07 14:31:28 +00:00
John Resig
d8706c5ac9
Landed a number of improvements to the selector engine. Results are auto-merged onto the jQuery
...
object, class filtering is now done inline, and not filtering is more efficient.
2009-01-07 00:13:57 +00:00
Ariel Flesler
2a81c359d5
jquery selector: Replacing {0,1} for ? in a regex.
2009-01-05 23:19:58 +00:00
John Resig
4503457616
Oops, order of operations.
2009-01-05 22:02:20 +00:00
John Resig
089da4ea77
Brought in a fix from Sizzle - IE doesn't have .contains on XML elements.
2009-01-05 21:59:07 +00:00
John Resig
558d03f24c
Merging from Sizzle (fixed a bug when querySelectorAll is used.
2009-01-05 02:45:20 +00:00
John Resig
989667c9fd
Synced with the Sizzle repository.
2009-01-05 00:21:13 +00:00
Ariel Flesler
eff400e44f
jquery selector: Removed a needless line (related to [5992]).
2008-12-25 21:09:08 +00:00
John Resig
47aed822a4
Synced with Sizzle codebase (which removed the use of the caching code).
2008-12-22 16:41:14 +00:00
John Resig
6048e40a45
Syncing Sizzle codebase.
2008-12-20 22:45:11 +00:00
John Resig
c85243dfc4
Landing the new Sizzle selector engine. There'll need to be some later tweaks (to make the tests a little more pragmatic - especially for document order elements). But it appears to be passing well and that's enough. Closes #3563 .
2008-12-20 01:19:17 +00:00
John Resig
ab551c2b14
Standardized the type checks across core. isFunction and isArray now use Object.prototype.toString to verify the type, .constructor use was removed in favor of typeof, typeof checks now use ===, undefined checks use === undefined. All of this is outlined in the new style guidelines: http://docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks . Fixes bug #3618 .
2008-11-17 16:32:05 +00:00
Ariel Flesler
a3e97062d4
jquery selector: closes #3023 . The attribute filter accepts ':'.
2008-07-28 16:34:46 +00:00
Ariel Flesler
23eeaf3854
jquery selector: closes #2939 . $('[style]') wasn't being handled well.
2008-07-28 16:23:23 +00:00
Ariel Flesler
3f5ff3097c
jquery: removing unnecessary trailing and leading spaces & tabs.
2008-05-13 01:45:58 +00:00
Ed Engelhardt
6aa4200a8c
fix small typo in comment
2008-05-11 10:17:11 +00:00
Ariel Flesler
e6fccd7103
jquery selector: reverting [5343], check #1960 .
2008-05-06 00:13:20 +00:00
Ariel Flesler
42161a1e34
jquery selector: removed needless check in jQuery.sibling.
2008-05-02 14:03:02 +00:00
Scott González
bd41548792
core: make sure all source files end with a single blank line.
2008-04-30 19:35:17 +00:00
Ariel Flesler
17b1e407d1
mainly made the code shorter:
...
- removed some needless if's
- replace multiple "var x" for one, comma separated declaration.
- added a local fn called now() for the (new Date)s
- fixed the indentation of a block, and a typo in a comment.
- used fn instead of prototype where possible
- jquery fx: exposed the speeds hash as jQuery.fx.speeds.
Also fixed (again) line endings
2008-04-29 23:34:50 +00:00
Scott González
2977f3df60
Fixed line endings.
2008-04-29 22:52:36 +00:00
Jörn Zaefferer
4d652ca520
jquery core: fix for #1960 , delegating to document.getElementsByName for [name=...] selectors (not in combination with :not)
2008-04-28 14:11:35 +00:00
John Resig
5da2e98cb3
De-eval'd selectors and the various DOM methods (will marginally help our speed and make us more compatible with projects like Caja and Adobe AIR). Left a selector eval in for backwards compatibility support of selector plugins.
2008-01-26 00:26:28 +00:00
David Serduke
be9302b710
Fixed #2077 by adding a var to make it a local variable instead of initializing a global one.
2007-12-19 18:47:01 +00:00
John Resig
7120b56caa
Added some improvements to changes made in [4143] for #1854 .
2007-12-13 22:58:59 +00:00
David Serduke
da33a981c6
Fixed #1854 by using wizzud's suggestion. The only real difference is the code is only called when there is more than a single selector. So there should be no speed decrease in the current working cases. Only additional functionality for cases that used to fail.
2007-12-13 22:24:59 +00:00
David Serduke
ffbedf0262
Fixed #1039 and #1733 by going through the core API and making them text node and comment node safe.
2007-12-07 01:52:21 +00:00
David Serduke
7cdddebe04
A partial rollback of the refactoring done in [4032]. It was causing a 4-6% speed decrease on certain hierarchy selectors ( > + and ~ ) since it did an extra .toUpperCase() which wasn't required.
...
The part left in was moving one of the .toUpperCase() calls to the var nodeName instead of having it in the loop. This appears to be giving a speed boost of a couple percent for those same hierarchy selectors.
2007-12-05 21:23:07 +00:00
David Serduke
2da897db84
Refactored jQuery.find() such that jQuery.nodeName() is used to test the node names like .filter() and other functions do. This puts in place possible fixes for tickets like #1991 where XML and HTML differ in case-sensitivity.
2007-12-05 08:00:30 +00:00
David Serduke
084079d2fd
Fixed #1727 bug where :nth-child() was non-standard with CSS3 plus two minor white space changes in selector.js.
2007-11-16 19:01:53 +00:00
John Resig
1088d06e54
Added a fix for bug #1612 , where :contains() was failing on XML documents, in IE.
2007-09-15 03:05:00 +00:00
John Resig
899ee03d37
Fixed a bug in .dir() where it would return non-element nodes.
2007-09-10 00:00:30 +00:00
John Resig
052aa1445a
Added .prevAll() and .nextAll() functionality.
2007-09-09 21:34:37 +00:00