Commit graph

  • 1fc7dcff11 Fixed lite version of jQuery. John Resig 2007-12-20 15:11:07 +00:00
  • 3f839a69c5 Tagging the 1.2.2b2 release. 1.2.2b2 John Resig 2007-12-20 15:07:37 +00:00
  • 3261544c38 Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default. John Resig 2007-12-20 13:36:56 +00:00
  • b740fe5632 Fixed a problem in the unit tests for IE where an optimization made the test case not work. The optimization was fine. It was the unit test that was taking a short cut which caused it to fail after the optimization went in. David Serduke 2007-12-20 07:39:35 +00:00
  • 0419455473 Changed the $(document).ready() code to try and solve some problems in Safari, Opera, and IE. David Serduke 2007-12-20 06:00:01 +00:00
  • ba9c14a589 added version to all builds; changed current version to 1.2.2-pre - to be updated after each release so its clear that a build is from which milestone; build.xml cleanup (removing uselss lite, docs, test and _with_plguins targets); deleted useless docs build files (replaced by wiki and wiki xml exporter and api browsers) Jörn Zaefferer 2007-12-19 22:26:05 +00:00
  • e2fc993334 offset: make sure there is a parent node to work on while calculating scroll offsets (#2073) Brandon Aaron 2007-12-19 19:07:12 +00:00
  • add0681f90 offset: make sure border width always gets calculated in pixels Brandon Aaron 2007-12-19 19:05:34 +00:00
  • be9302b710 Fixed #2077 by adding a var to make it a local variable instead of initializing a global one. David Serduke 2007-12-19 18:47:01 +00:00
  • a7dfbb55d9 Short-circuit jQuery.event.fix if it has already fixed the current event object. Brandon Aaron 2007-12-19 18:35:58 +00:00
  • b32ec31d89 Insure width/height do not return a negative number. Brandon Aaron 2007-12-19 18:23:46 +00:00
  • 3bb82a34de Second part of the fix for #2071. An empty string "" was being sent to .bind() and when the events were being cleared it went in to an infinite recursive loop till memory was out. The test was !types in the function and changing it to types == undefined fixed the error. David Serduke 2007-12-19 01:48:05 +00:00
  • 1d7b7b94ef Changed CRLF end of lines to just LF. Other than that there were no changes in this commit. Try svn diff -x --ignore-eol-style -r 4224:4225 to see that. David Serduke 2007-12-19 01:10:20 +00:00
  • 7ef40fd199 Fixed #2076 where .val() could return an array instead of undefined when the jquery object was empty. The bug was created during the .val() refactoring for the javascript strict FF ticket. David Serduke 2007-12-18 17:19:33 +00:00
  • fc51e14b81 width and height methods are now working properly Brandon Aaron 2007-12-18 03:53:09 +00:00
  • 76c1889e22 Fixed #1887 - trigger fails if extra is not a function Richard Worth 2007-12-18 03:13:39 +00:00
  • 24e036c7c8 Fixed #2070 by adding a test for !nodeType to isArrayLike so DOM elements like SELECT are not considered array-like (even though they really are). David Serduke 2007-12-17 21:02:05 +00:00
  • d1b9ad3cdb Fixed #2069. The ready helper and shortcuts act the same. You can also still bind, unbind and trigger the ready event on the document element but doing so follows the events API unlike the ready helper method. Brandon Aaron 2007-12-17 20:22:53 +00:00
  • ce4ab8a60e test for #2070 Jörn Zaefferer 2007-12-17 19:01:25 +00:00
  • 70ae356e4e Test for #2069 Jörn Zaefferer 2007-12-17 17:39:50 +00:00
  • 90b25efa6c Fixed #2062 by adding a check to see if the selector is array-like in .not() before testing it as an array. Otherwise it does a straight comparison during the filter test. David Serduke 2007-12-17 16:54:44 +00:00
  • d7f5a0835b Fixed #2064 Brandon Aaron 2007-12-17 14:37:26 +00:00
  • 13a5fdb6a1 Tagging the 1.2.2b release. 1.2.2b John Resig 2007-12-17 02:28:37 +00:00
  • 6496e4d9c4 Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML was done in some cases. David Serduke 2007-12-17 01:58:05 +00:00
  • adc4c48201 Updating changlog Brandon Aaron 2007-12-17 01:11:02 +00:00
  • 9af7387579 Added code to remove the script tag on successful jsonp calls. David Serduke 2007-12-17 00:51:59 +00:00
  • 6a25c20f5c The extra & was getting gobbled, oops. John Resig 2007-12-17 00:48:12 +00:00
  • b721a2f472 Added a fix for bug #2020 - if you want to do data: {callback: "?"}, do jsonp: "callback" instead. John Resig 2007-12-17 00:44:00 +00:00
  • 45e4a52cdd Cleaned up mouseenter and mouseleave special events Brandon Aaron 2007-12-16 22:18:35 +00:00
  • 859aa6c9df Changed window.frameElement to window == top because of some access denied errors when the iframe wasn't same origin. David Serduke 2007-12-16 10:33:38 +00:00
  • 97e98591aa Added code so an iframe in IE won't count on doScroll to determine if the dom is ready. We will probably have to do more investigation on a better (and consistant) method for inside an iframe in IE. David Serduke 2007-12-16 10:08:53 +00:00
  • 7a6978b324 Renaming variables to be more consistent Brandon Aaron 2007-12-16 04:09:53 +00:00
  • 67c7b46ea3 Adding data and removeData tests Brandon Aaron 2007-12-16 04:04:29 +00:00
  • feb9051c0e Fixed #1781 for warnings created on load by FF javascript.options.strict == true. David Serduke 2007-12-16 01:03:50 +00:00
  • 4e339ef557 Added feature #1934 by allowing script.charset to be set through an optional 'scriptCharset' ajax option. David Serduke 2007-12-15 23:30:34 +00:00
  • b264f789b9 new special events api, ready is now a first class event that you can use bind, unbind or the ready helper, two new events: mouseenter and mouseleave, the hover helper method now uses mouseenter and mouseleave, bind and unbind can now take a space sperated list of event types Brandon Aaron 2007-12-15 05:55:33 +00:00
  • 01e8f33e44 Don't remove test directory on clean Brandon Aaron 2007-12-14 18:59:47 +00:00
  • 06c2f06a21 Fixed #2046 by forcing the dataType to 'html' in the .load() function. David Serduke 2007-12-14 17:06:41 +00:00
  • 56a93fc2cc Added an extra try block to handle FF 3 x-domain requests. (Bug #1557) John Resig 2007-12-14 02:04:00 +00:00
  • 14a3a5bf9d Added a test case for $("<option>test</option>")[0].selected (bug #2050). John Resig 2007-12-14 01:57:29 +00:00
  • 7120b56caa Added some improvements to changes made in [4143] for #1854. John Resig 2007-12-13 22:58:59 +00:00
  • 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. David Serduke 2007-12-13 22:24:59 +00:00
  • 3e3b86c7a7 Getting the width and height of the document now returns the correct value in all browsers. It even works around the scrollWidth == offsetWidth bug in Firefox thanks to wizzud. Brandon Aaron 2007-12-13 03:46:48 +00:00
  • e1af5faf80 Fixed #1750 by adding a url that starts with "//" and is a dataType "script" will now use a cross domain load the same as urls that start with "http". David Serduke 2007-12-12 20:54:44 +00:00
  • 58c640fb1c Added more unit tests for offset. Fixed an offset issue relating to table header cells in Opera Brandon Aaron 2007-12-12 16:55:55 +00:00
  • 279f77e960 Fixed a bug in clone where it wouldn't work on an XML node in IE. Also added unit test for it. David Serduke 2007-12-12 01:32:35 +00:00
  • c6a44c7943 Fix #1987 by only doing remote <script> type ajax with GET requests. All other types will be passed on to XMLHttpRequest. David Serduke 2007-12-11 20:16:19 +00:00
  • 227f8b2514 Greatly reduced the complexity of the width/height methods. This also fixes #2009, #1870, #1796, #1843, #1839, #1818, #1613, #1415 and #1629 Brandon Aaron 2007-12-11 04:40:54 +00:00
  • 540f9304a7 Fix for #2032 Brandon Aaron 2007-12-11 03:17:44 +00:00
  • 9ea8017f86 Fixed #1959 by postponing ALL script evaluations till the html insertion is done. Before the code would immediately execute any scripts that weren't in subelements if no subelements prior had scripts in them (i.e. once any script was postponed they all were). This could cause inconsistent behavior. Since, at this time, we have to postpone some scripts it makes more sense to postpone them all. David Serduke 2007-12-10 19:04:59 +00:00
  • f97f77c034 Added a change that triples the speed of all uses of $(...). For example $(DOMElement) was 38ms, is now 13ms. John Resig 2007-12-10 01:45:03 +00:00
  • ccf055033a Fixed clone so that it now properly copies changes to the innerHTML in IE. Unfortunately, IE stores some modifications to some attributes only as a property and they are still not copied properly. This is documented in ticket #1836. Brandon Aaron 2007-12-08 23:03:10 +00:00
  • b3ec8edddd show is now element aware (#960) Brandon Aaron 2007-12-08 04:54:53 +00:00
  • 91f1299f68 Fix for #1486. Prevent IE from throwing an error when triggering focus on hidden input. Brandon Aaron 2007-12-08 02:54:09 +00:00
  • ffbedf0262 Fixed #1039 and #1733 by going through the core API and making them text node and comment node safe. David Serduke 2007-12-07 01:52:21 +00:00
  • 12ef255ffd Added ajax error messages in the unit test suite because Safari was sometimes tossing errors that were being ignored and that caused a freeze in the test suite. David Serduke 2007-12-06 23:23:10 +00:00
  • d44e9451f7 Fix for #2002 Jörn Zaefferer 2007-12-06 19:51:00 +00:00
  • be4a8c32ac Safari sometimes stops in the test suite on the ajax section when I run the whole suite and its running on my local machine. I went ahead and put better error detection in for the test that is the culprit so it will keep going. It seems to do fine if I run it from a server. It gives xml.status as 0. Maybe this is the reason http://www.pearweb.com/javascript/XMLHttpRequest.html David Serduke 2007-12-05 23:03:58 +00:00
  • 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. David Serduke 2007-12-05 21:23:07 +00:00
  • b0b5fa74b6 Fixed the build/speed testing application to work with current versions of jQuery. The main changes were implementing :has() where necessary to replace functionality that no longer existed and to use noConflict() so the libraries wouldn't have to be modified for the speed testing. David Serduke 2007-12-05 17:33:49 +00:00
  • 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. David Serduke 2007-12-05 08:00:30 +00:00
  • 1be5582039 Fixed #1419 where IE failed with .text() on an XML node. This is part of a series of tickets including #1264 where the context of the DOM manipulation was a problem in xml and iframe documents. David Serduke 2007-12-05 05:01:46 +00:00
  • 74a132d944 Fixed #1264. If you read the bug there were many proposed changes. As it turned out most of them had already been implemented. The last ones necessary were in .domManip() with when a <table> was 'this' and for .text(). Adding these last changes seems to make dom and text manipulation in IE frames possible. Unit test cases were added as well. David Serduke 2007-12-05 00:26:13 +00:00
  • c424e79ccb Added another relative offset test Brandon Aaron 2007-12-04 21:29:28 +00:00
  • 4fc2971019 Added visual marker to absolute fixture for offset testing Brandon Aaron 2007-12-04 20:59:33 +00:00
  • e317bb7105 offset now uses clientLeft and clientTop instead of calculating html border in IE Brandon Aaron 2007-12-04 20:54:23 +00:00
  • f576ceeea9 Beginnings of the offset test suite Brandon Aaron 2007-12-04 20:51:16 +00:00
  • 76e3a90153 Fixed #1763 by checking to see if .createElement() is available on the context and if isn't default to other contexts. David Serduke 2007-12-04 19:37:03 +00:00
  • d938c6bbd6 Fixed #1438 where a filter could be set in IE but not have opacity in it. The JS error was fixed by checking to make sure 'opacity=' is in the filter before seeing what its value is. David Serduke 2007-12-04 18:15:27 +00:00
  • 4d13f3701c fixed jsdoc for equals Jörn Zaefferer 2007-12-04 16:42:42 +00:00
  • 8b74ba07aa For fix #1999 changed the RegExp to be non-greedy. Thanks emartin24. David Serduke 2007-12-04 07:36:03 +00:00
  • aee221d33c Fixed #1999 by replacing the 'no-cache' parameter if it is there instead of just appending. David Serduke 2007-12-04 04:43:45 +00:00
  • 701b072e1a There was a disabled test in the ajax test suite which said there were too many simultainous requests. I re-enabled it when I found a bug that might have been the cause of the failure instead and it seems to work fine. We can disable it again if that ends up not being the case. David Serduke 2007-12-04 01:51:07 +00:00
  • 66fbbec3bb Fixed [1993] although it actually wasn't a bug in the core but rather a misunderstanding of how the extra function was supposed to work in jQuery.event.trigger(). That said, it seems more useful and robust for the code to work the way the ticket author thought it should work so this change was made. David Serduke 2007-12-03 21:41:10 +00:00
  • a73445bbc7 Changed version to 1.2.2-pre. John Resig 2007-11-30 23:37:34 +00:00
  • 5039a4bc5b Added enchancement for #1994 by adding two parameters to .stop() which give additional functionality. The first parameter clearQueue will clear the queue on the necessary DOM elements so all animation will stop. The second parameter will cause the currently playing animation to immediately complete including reseting original styles on show and hide and calling the callback function. If no parameters are passed it will work as it always did. David Serduke 2007-11-30 21:36:49 +00:00
  • 37902e86b1 Fixed a problem with changeset [3841] where a function could no longer be .extend()-ed. David Serduke 2007-11-30 08:39:49 +00:00
  • aca1cc3677 Removed comments and code related to Safari being unable to do a sync global eval. With the new globalEval() code that should no longer be a problem. David Serduke 2007-11-30 02:42:48 +00:00
  • 4b8f6cdc86 Fixed #1557, although it doesn't appear to be just an FF3 problem. In this case, $.getJSON() wasn't working from a remote host. I went ahead and added a unit test then added the s.dataType == "json" test for a remote <script> load. The said that json was allowed but the dataType check was missing. This appears to have fixed the bug across all browsers. David Serduke 2007-11-29 19:07:20 +00:00
  • 7ac564cd98 Fixed #1450 by returning 1223 as success. Couldn't normalize the status since jquery uses the actual xmlhttprequest object. David Serduke 2007-11-29 17:12:08 +00:00
  • b6d70a7ce3 Back out one of the changes from the previous commit that wasn't necessary to fix the bug and might not be desired. David Serduke 2007-11-28 23:53:54 +00:00
  • 95c0265486 Fixed #1908 by testing to make sure it isn't null before checking the nodeType. David Serduke 2007-11-28 23:42:16 +00:00
  • ed7608d8ee Fixed #1070 by converting all setAttribute() values to a string which is what all browsers but IE did. This will bring IE in line with the others and fix the bug. David Serduke 2007-11-28 23:13:59 +00:00
  • 3ae5fbc16a Fixed #1701 by passing through the arguments as suggested. David Serduke 2007-11-28 22:23:40 +00:00
  • 5c6c99361f Fixed #1714 by adding a default empty string if the value is falsey. David Serduke 2007-11-28 16:38:34 +00:00
  • 0a755f6ab3 Fixed #1599 as Brandon suggested to ignore negative values to width and height css. The fix itself is slightly different as it was moved to .css() instead of staying in .attr() like in his patch. I decided there was less chance of incorrect behavior (like if someone had an XML file with a width attribute that could be negative). Also took out some unneeded white space while I was in there. David Serduke 2007-11-28 01:01:49 +00:00
  • 2ccd2cb36b Fixed #1942 but running jQuery.css() before jQuery.curCSS(). This way when the property is width or height it gets the values through calculation instead of just css first. This appears to fix the problem in Opera without hurting any of the other browsers. David Serduke 2007-11-27 23:58:07 +00:00
  • b26da08821 Fixed #1970 by returning true instead of false when the mouse moves over a sub-element. The side effect is the event will not stop default behavior and will propagate which it didn't used to. I could find no compelling reason to stop those things from happening. David Serduke 2007-11-27 19:20:36 +00:00
  • 1a2fdafd38 Added a quick shortcut to improve the speed of $(DOMElement) by over 2x. John Resig 2007-11-27 01:03:49 +00:00
  • e6a481e533 Fix for #1933 Brandon Aaron 2007-11-19 16:15:51 +00:00
  • 5e99807271 Fix for #1944. Added nodeName and tagName to jQuery.props and tests for maxlength, defaultValue, selectedIndex, tagName and nodeName. Brandon Aaron 2007-11-19 16:07:44 +00:00
  • 2e2a1b8910 Slightly altered a test that was causing IE7 in some cases to hard crash. The test was setting .html() to many divs, some of which were inside other divs effectly deleting them from the DOM. I suspect this caused some instability and may only have been an IE7 with IEDevBar issue. The test still correctly tests the functionality of that unit test. David Serduke 2007-11-18 00:46:58 +00:00
  • 264ffbc73b Fixed #1074 where .html() was incorrectly changing the selected value of an option. David Serduke 2007-11-17 22:09:51 +00:00
  • 32b3ac4f06 Changed core.js from CRLF to LF eol style to match the rest of the source files. This was the only change for this changeset. To see it try: 'svn diff -x --ignore-eol-style -r 3841:3842' and there will be no diffs. (actual revision numbers are an educated guess) David Serduke 2007-11-17 04:36:50 +00:00
  • bf8f3fe094 Fix #1907 where the never-ending loop prevention used a coersion comparison which sometimes dropped values incorrectly. Also fixed a bug where on deep copies the target copied over itself (i = 2 addition). Last made code handle the case when a property might have a string in it that should be overwritten by an object. David Serduke 2007-11-17 04:25:22 +00:00
  • 6853370fbb Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be replaced with String.match(). David Serduke 2007-11-16 23:54:45 +00:00
  • e2ef3df86d Fixed #1095 bug where radio buttons became unchecked during show(). Also added unit test and had to fix a selector test that was broken by the new testing div in test/index.html. Last made some whitespace changes. David Serduke 2007-11-16 23:39:23 +00:00
  • b9371a6ca4 Fix #1827 bug where extra setInterval()s can be called during animation. David Serduke 2007-11-16 21:50:27 +00:00
  • 084079d2fd Fixed #1727 bug where :nth-child() was non-standard with CSS3 plus two minor white space changes in selector.js. David Serduke 2007-11-16 19:01:53 +00:00
  • 0a0990485e Fixed #1822 bug where queue() didn't always default to type 'fx'. David Serduke 2007-11-16 18:23:59 +00:00