John Resig [Mon, 28 Jan 2008 19:37:46 +0000 (19:37 +0000)]
Tagging the 1.2.3a release.
John Resig [Mon, 28 Jan 2008 19:32:57 +0000 (19:32 +0000)]
Fixed make speed.
John Resig [Sat, 26 Jan 2008 00:26:28 +0000 (00:26 +0000)]
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.
David Serduke [Wed, 23 Jan 2008 03:54:23 +0000 (03:54 +0000)]
Fix #2184 by using the jQuery.clean() function instead of a direct innerHTML assignment in the clone() function for IE.
Jörn Zaefferer [Sun, 20 Jan 2008 14:23:22 +0000 (14:23 +0000)]
global replace for @VERSION, fixed #2101
David Serduke [Thu, 17 Jan 2008 21:38:58 +0000 (21:38 +0000)]
Fixed #2174 by removing the s.dataType == "json" check for possible cross domain since it causes absolute urls to use a <script> tag ajax retrieval even though absolute urls work fine for retrieving local data. Cross-domain jsonp will still work since the $.ajax() function actually changes the s.dataType to "script" before it reaches this check in cases where it is s.dataType == "jsonp" or s.dataType == "json" and a parameter has =? in it.
David Serduke [Thu, 17 Jan 2008 21:31:28 +0000 (21:31 +0000)]
Updating version number to 1.2.3-pre
John Resig [Mon, 14 Jan 2008 22:56:07 +0000 (22:56 +0000)]
Tagging the 1.2.2 release.
David Serduke [Mon, 14 Jan 2008 22:30:48 +0000 (22:30 +0000)]
Changing end of line from CRLF to just LF like the rest of the source files.
John Resig [Mon, 14 Jan 2008 20:40:05 +0000 (20:40 +0000)]
Discontinued the test for $(form.elements).
John Resig [Mon, 14 Jan 2008 20:17:21 +0000 (20:17 +0000)]
Excluded a couple Ajax tests from running locally.
John Resig [Mon, 14 Jan 2008 20:06:34 +0000 (20:06 +0000)]
Added support for breaking in an object loop (Bug #2111).
John Resig [Mon, 14 Jan 2008 19:37:31 +0000 (19:37 +0000)]
And the rest of the _default change.
John Resig [Mon, 14 Jan 2008 19:37:05 +0000 (19:37 +0000)]
Tweaked the default Accept header to _default.
John Resig [Mon, 14 Jan 2008 19:17:35 +0000 (19:17 +0000)]
Added a check to make sure that .style exists before trying to access it (Bug #2105).
John Resig [Mon, 14 Jan 2008 19:15:27 +0000 (19:15 +0000)]
Fixed default property name for Opera (bug #2159).
John Resig [Mon, 14 Jan 2008 19:13:46 +0000 (19:13 +0000)]
Fixed minor issue with pack build script. (Bug #2101)
Brandon Aaron [Mon, 14 Jan 2008 18:47:21 +0000 (18:47 +0000)]
Adding browser UA tests
John Resig [Mon, 14 Jan 2008 18:46:44 +0000 (18:46 +0000)]
Added a fix for bug #2140. Opera doesn't like concating null or undefined values.
John Resig [Mon, 14 Jan 2008 18:19:28 +0000 (18:19 +0000)]
Just added support for Accept headers in Ajax requests - defaults to the correct header depending on the type of request that's being performmed. (Bug #1986)
Jörn Zaefferer [Mon, 14 Jan 2008 09:42:53 +0000 (09:42 +0000)]
reverted change for #2114
Jörn Zaefferer [Mon, 14 Jan 2008 09:33:08 +0000 (09:33 +0000)]
fix for #2114; refactored tests for bind() to highlight failing select-change-test
John Resig [Sat, 12 Jan 2008 23:03:39 +0000 (23:03 +0000)]
Tweaked comment for isFunction.
David Serduke [Sat, 12 Jan 2008 01:06:37 +0000 (01:06 +0000)]
Fixed an edge case in show() where the css says the display should be none. In that case force 'block' so it will actually show.
Yehuda Katz [Mon, 7 Jan 2008 01:03:31 +0000 (01:03 +0000)]
Adds support for username and password to $.ajax
Jörn Zaefferer [Fri, 4 Jan 2008 11:33:34 +0000 (11:33 +0000)]
Test for #2114
Yehuda Katz [Fri, 28 Dec 2007 19:08:36 +0000 (19:08 +0000)]
Fixes bug with charCode, bad 'var' and missing semicolon
David Serduke [Fri, 21 Dec 2007 05:47:33 +0000 (05:47 +0000)]
Fixed #2084 by added embed to the list of elements where it is ok to have self closing xhtml.
Brandon Aaron [Fri, 21 Dec 2007 04:53:33 +0000 (04:53 +0000)]
Fixed memory leak in IE with non-native event types
Brandon Aaron [Fri, 21 Dec 2007 02:11:26 +0000 (02:11 +0000)]
Removed check to prevent event from being fixed twice. Unfortunately, in IE this is sometimes necessary with its global event object. Binding both a mousedown and mousemove event is an example.
David Serduke [Thu, 20 Dec 2007 20:40:20 +0000 (20:40 +0000)]
Fixed a couple problems found in the test suite. First, IE doesn't like it when text nodes were trying to duplicate their events in clone, so don't do text nodes (that shouldn't have events anyway). Also the fx module was freezing from a recent update that wasn't quite finished.
Brandon Aaron [Thu, 20 Dec 2007 19:31:02 +0000 (19:31 +0000)]
Fixing #2081
David Serduke [Thu, 20 Dec 2007 19:21:56 +0000 (19:21 +0000)]
Removed a unit test that tested to see if queued objects were of a certain type. It was decided you can queue anything and it is up to the coder to make sure it was intended.
David Serduke [Thu, 20 Dec 2007 18:55:43 +0000 (18:55 +0000)]
Fixed #2080 by removing the check for nodeType != 1. It was put in to limit the queuing to just dom objects (ie not text nodes and comment nodes), but the queuing functionality is being used more broadly than I realized so the check is now removed.
John Resig [Thu, 20 Dec 2007 15:11:07 +0000 (15:11 +0000)]
Fixed lite version of jQuery.
John Resig [Thu, 20 Dec 2007 15:07:37 +0000 (15:07 +0000)]
Tagging the 1.2.2b2 release.
John Resig [Thu, 20 Dec 2007 13:36:56 +0000 (13:36 +0000)]
Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.
David Serduke [Thu, 20 Dec 2007 07:39:35 +0000 (07:39 +0000)]
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 [Thu, 20 Dec 2007 06:00:01 +0000 (06:00 +0000)]
Changed the $(document).ready() code to try and solve some problems in Safari, Opera, and IE.
Jörn Zaefferer [Wed, 19 Dec 2007 22:26:05 +0000 (22:26 +0000)]
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)
Brandon Aaron [Wed, 19 Dec 2007 19:07:12 +0000 (19:07 +0000)]
offset: make sure there is a parent node to work on while calculating scroll offsets (#2073)
Brandon Aaron [Wed, 19 Dec 2007 19:05:34 +0000 (19:05 +0000)]
offset: make sure border width always gets calculated in pixels
David Serduke [Wed, 19 Dec 2007 18:47:01 +0000 (18:47 +0000)]
Fixed #2077 by adding a var to make it a local variable instead of initializing a global one.
Brandon Aaron [Wed, 19 Dec 2007 18:35:58 +0000 (18:35 +0000)]
Short-circuit jQuery.event.fix if it has already fixed the current event object.
Brandon Aaron [Wed, 19 Dec 2007 18:23:46 +0000 (18:23 +0000)]
Insure width/height do not return a negative number.
David Serduke [Wed, 19 Dec 2007 01:48:05 +0000 (01:48 +0000)]
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 [Wed, 19 Dec 2007 01:10:20 +0000 (01:10 +0000)]
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 [Tue, 18 Dec 2007 17:19:33 +0000 (17:19 +0000)]
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.
Brandon Aaron [Tue, 18 Dec 2007 03:53:09 +0000 (03:53 +0000)]
width and height methods are now working properly
Richard Worth [Tue, 18 Dec 2007 03:13:39 +0000 (03:13 +0000)]
Fixed #1887 - trigger fails if extra is not a function
David Serduke [Mon, 17 Dec 2007 21:02:05 +0000 (21:02 +0000)]
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).
Brandon Aaron [Mon, 17 Dec 2007 20:22:53 +0000 (20:22 +0000)]
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.
Jörn Zaefferer [Mon, 17 Dec 2007 19:01:25 +0000 (19:01 +0000)]
test for #2070
Jörn Zaefferer [Mon, 17 Dec 2007 17:39:50 +0000 (17:39 +0000)]
Test for #2069
David Serduke [Mon, 17 Dec 2007 16:54:44 +0000 (16:54 +0000)]
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.
Brandon Aaron [Mon, 17 Dec 2007 14:37:26 +0000 (14:37 +0000)]
Fixed #2064
John Resig [Mon, 17 Dec 2007 02:28:37 +0000 (02:28 +0000)]
Tagging the 1.2.2b release.
David Serduke [Mon, 17 Dec 2007 01:58:05 +0000 (01:58 +0000)]
Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML was done in some cases.
Brandon Aaron [Mon, 17 Dec 2007 01:11:02 +0000 (01:11 +0000)]
Updating changlog
David Serduke [Mon, 17 Dec 2007 00:51:59 +0000 (00:51 +0000)]
Added code to remove the script tag on successful jsonp calls.
John Resig [Mon, 17 Dec 2007 00:48:12 +0000 (00:48 +0000)]
The extra & was getting gobbled, oops.
John Resig [Mon, 17 Dec 2007 00:44:00 +0000 (00:44 +0000)]
Added a fix for bug #2020 - if you want to do data: {callback: "?"}, do jsonp: "callback" instead.
Brandon Aaron [Sun, 16 Dec 2007 22:18:35 +0000 (22:18 +0000)]
Cleaned up mouseenter and mouseleave special events
David Serduke [Sun, 16 Dec 2007 10:33:38 +0000 (10:33 +0000)]
Changed window.frameElement to window == top because of some access denied errors when the iframe wasn't same origin.
David Serduke [Sun, 16 Dec 2007 10:08:53 +0000 (10:08 +0000)]
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.
Brandon Aaron [Sun, 16 Dec 2007 04:09:53 +0000 (04:09 +0000)]
Renaming variables to be more consistent
Brandon Aaron [Sun, 16 Dec 2007 04:04:29 +0000 (04:04 +0000)]
Adding data and removeData tests
David Serduke [Sun, 16 Dec 2007 01:03:50 +0000 (01:03 +0000)]
Fixed #1781 for warnings created on load by FF javascript.options.strict == true.
David Serduke [Sat, 15 Dec 2007 23:30:34 +0000 (23:30 +0000)]
Added feature #1934 by allowing script.charset to be set through an optional 'scriptCharset' ajax option.
Brandon Aaron [Sat, 15 Dec 2007 05:55:33 +0000 (05:55 +0000)]
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 [Fri, 14 Dec 2007 18:59:47 +0000 (18:59 +0000)]
Don't remove test directory on clean
David Serduke [Fri, 14 Dec 2007 17:06:41 +0000 (17:06 +0000)]
Fixed #2046 by forcing the dataType to 'html' in the .load() function.
John Resig [Fri, 14 Dec 2007 02:04:00 +0000 (02:04 +0000)]
Added an extra try block to handle FF 3 x-domain requests. (Bug #1557)
John Resig [Fri, 14 Dec 2007 01:57:29 +0000 (01:57 +0000)]
Added a test case for $("<option>test</option>")[0].selected (bug #2050).
John Resig [Thu, 13 Dec 2007 22:58:59 +0000 (22:58 +0000)]
Added some improvements to changes made in [4143] for #1854.
David Serduke [Thu, 13 Dec 2007 22:24:59 +0000 (22:24 +0000)]
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.
Brandon Aaron [Thu, 13 Dec 2007 03:46:48 +0000 (03:46 +0000)]
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.
David Serduke [Wed, 12 Dec 2007 20:54:44 +0000 (20:54 +0000)]
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".
Brandon Aaron [Wed, 12 Dec 2007 16:55:55 +0000 (16:55 +0000)]
Added more unit tests for offset. Fixed an offset issue relating to table header cells in Opera
David Serduke [Wed, 12 Dec 2007 01:32:35 +0000 (01:32 +0000)]
Fixed a bug in clone where it wouldn't work on an XML node in IE. Also added unit test for it.
David Serduke [Tue, 11 Dec 2007 20:16:19 +0000 (20:16 +0000)]
Fix #1987 by only doing remote <script> type ajax with GET requests. All other types will be passed on to XMLHttpRequest.
Brandon Aaron [Tue, 11 Dec 2007 04:40:54 +0000 (04:40 +0000)]
Greatly reduced the complexity of the width/height methods. This also fixes #2009, #1870, #1796, #1843, #1839, #1818, #1613, #1415 and #1629
Brandon Aaron [Tue, 11 Dec 2007 03:17:44 +0000 (03:17 +0000)]
Fix for #2032
David Serduke [Mon, 10 Dec 2007 19:04:59 +0000 (19:04 +0000)]
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.
John Resig [Mon, 10 Dec 2007 01:45:03 +0000 (01:45 +0000)]
Added a change that triples the speed of all uses of $(...). For example $(DOMElement) was 38ms, is now 13ms.
Brandon Aaron [Sat, 8 Dec 2007 23:03:10 +0000 (23:03 +0000)]
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 [Sat, 8 Dec 2007 04:54:53 +0000 (04:54 +0000)]
show is now element aware (#960)
Brandon Aaron [Sat, 8 Dec 2007 02:54:09 +0000 (02:54 +0000)]
Fix for #1486. Prevent IE from throwing an error when triggering focus on hidden input.
David Serduke [Fri, 7 Dec 2007 01:52:21 +0000 (01:52 +0000)]
Fixed #1039 and #1733 by going through the core API and making them text node and comment node safe.
David Serduke [Thu, 6 Dec 2007 23:23:10 +0000 (23:23 +0000)]
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.
Jörn Zaefferer [Thu, 6 Dec 2007 19:51:00 +0000 (19:51 +0000)]
Fix for #2002
David Serduke [Wed, 5 Dec 2007 23:03:58 +0000 (23:03 +0000)]
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 pearweb.com/javascript/XMLHttpRequest.html
David Serduke [Wed, 5 Dec 2007 21:23:07 +0000 (21:23 +0000)]
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.
David Serduke [Wed, 5 Dec 2007 17:33:49 +0000 (17:33 +0000)]
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.
So now the file jquery-basis.js will be tested against the jquery.js in the /dist directory. Version 1.2.1 is currently in jquery-basis.js.
David Serduke [Wed, 5 Dec 2007 08:00:30 +0000 (08:00 +0000)]
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 [Wed, 5 Dec 2007 05:01:46 +0000 (05:01 +0000)]
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 [Wed, 5 Dec 2007 00:26:13 +0000 (00:26 +0000)]
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.
In addition "submit.gif" was removed from the test suite index.html since it didn't exist.
Brandon Aaron [Tue, 4 Dec 2007 21:29:28 +0000 (21:29 +0000)]
Added another relative offset test
Brandon Aaron [Tue, 4 Dec 2007 20:59:33 +0000 (20:59 +0000)]
Added visual marker to absolute fixture for offset testing
Brandon Aaron [Tue, 4 Dec 2007 20:54:23 +0000 (20:54 +0000)]
offset now uses clientLeft and clientTop instead of calculating html border in IE