Commit graph

11 commits

Author SHA1 Message Date
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
John Resig 3a4e1233aa Landing the new expando management code. Completely overhauls how data is associated with elements.
Plugins will be most interested in:
- jQuery.data(elem) -> Unique ID for the element
- jQuery.data(elem, name) -> Named data store for the element
- jQuery.data(elem, name, value) -> Saves a value to the named data store
- jQuery.removeData(elem) -> Remove the expando and the complete data store
- jQuery.removeData(elem, name) -> Removes just this one named data store

jQuery's .remove() and .empty() automatically clean up after themselves. Once an element leaves a DOM document their events are no longer intact. Thus, statements like so:
{{{
  $("#foo").remove().appendTo("#bar");
}}}
should be written like so:
{{{
  $("#foo").appendTo("#bar");
}}}
in order to avoid losing the bound events.
2007-09-08 23:31:23 +00:00
John Resig b4e23b5af0 Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
Renamed from src/selector/selector.js (Browse further)