John Resig
c39bd07cc9
Added support for breaking in an object loop (Bug #2111 ).
2008-01-14 20:06:34 +00:00
Brandon Aaron
8a356f0d23
Adding browser UA tests
2008-01-14 18:47:21 +00:00
Jörn Zaefferer
2fa855601e
fix for #2114 ; refactored tests for bind() to highlight failing select-change-test
2008-01-14 09:33:08 +00:00
Jörn Zaefferer
948753842b
Test for #2114
2008-01-04 11:33:34 +00:00
David Serduke
50c40add5a
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.
2007-12-20 20:40:20 +00:00
David Serduke
259c8aa604
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.
2007-12-20 19:21:56 +00:00
John Resig
3261544c38
Fixed #2027 - make sure that cloned elements (within appendTo, etc.) have their events cloned by default.
2007-12-20 13:36:56 +00:00
David Serduke
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.
2007-12-20 07:39:35 +00:00
Jörn Zaefferer
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)
2007-12-19 22:26:05 +00:00
David Serduke
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.
2007-12-18 17:19:33 +00:00
Brandon Aaron
fc51e14b81
width and height methods are now working properly
2007-12-18 03:53:09 +00:00
David Serduke
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).
2007-12-17 21:02:05 +00:00
Jörn Zaefferer
ce4ab8a60e
test for #2070
2007-12-17 19:01:25 +00:00
Jörn Zaefferer
70ae356e4e
Test for #2069
2007-12-17 17:39:50 +00:00
David Serduke
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.
2007-12-17 16:54:44 +00:00
David Serduke
6496e4d9c4
Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML was done in some cases.
2007-12-17 01:58:05 +00:00
John Resig
b721a2f472
Added a fix for bug #2020 - if you want to do data: {callback: "?"}, do jsonp: "callback" instead.
2007-12-17 00:44:00 +00:00
Brandon Aaron
67c7b46ea3
Adding data and removeData tests
2007-12-16 04:04:29 +00:00
Brandon Aaron
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
2007-12-15 05:55:33 +00:00
David Serduke
06c2f06a21
Fixed #2046 by forcing the dataType to 'html' in the .load() function.
2007-12-14 17:06:41 +00:00
John Resig
14a3a5bf9d
Added a test case for $("<option>test</option>")[0].selected (bug #2050 ).
2007-12-14 01:57:29 +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
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".
2007-12-12 20:54:44 +00:00
Brandon Aaron
58c640fb1c
Added more unit tests for offset. Fixed an offset issue relating to table header cells in Opera
2007-12-12 16:55:55 +00:00
David Serduke
279f77e960
Fixed a bug in clone where it wouldn't work on an XML node in IE. Also added unit test for it.
2007-12-12 01:32:35 +00:00
David Serduke
c6a44c7943
Fix #1987 by only doing remote <script> type ajax with GET requests. All other types will be passed on to XMLHttpRequest.
2007-12-11 20:16:19 +00:00
David Serduke
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.
2007-12-10 19:04:59 +00:00
Brandon Aaron
b3ec8edddd
show is now element aware ( #960 )
2007-12-08 04:54:53 +00:00
Brandon Aaron
91f1299f68
Fix for #1486 . Prevent IE from throwing an error when triggering focus on hidden input.
2007-12-08 02:54:09 +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
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.
2007-12-06 23:23:10 +00:00
Jörn Zaefferer
d44e9451f7
Fix for #2002
2007-12-06 19:51:00 +00:00
David Serduke
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
2007-12-05 23:03:58 +00:00
David Serduke
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.
2007-12-05 05:01:46 +00:00
David Serduke
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.
...
In addition "submit.gif" was removed from the test suite index.html since it didn't exist.
2007-12-05 00:26:13 +00:00
Brandon Aaron
c424e79ccb
Added another relative offset test
2007-12-04 21:29:28 +00:00
Brandon Aaron
4fc2971019
Added visual marker to absolute fixture for offset testing
2007-12-04 20:59:33 +00:00
Brandon Aaron
f576ceeea9
Beginnings of the offset test suite
2007-12-04 20:51:16 +00:00
David Serduke
76e3a90153
Fixed #1763 by checking to see if .createElement() is available on the context and if isn't default to other contexts.
2007-12-04 19:37:03 +00:00
David Serduke
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.
2007-12-04 18:15:27 +00:00
Jörn Zaefferer
4d13f3701c
fixed jsdoc for equals
2007-12-04 16:42:42 +00:00
David Serduke
aee221d33c
Fixed #1999 by replacing the 'no-cache' parameter if it is there instead of just appending.
2007-12-04 04:43:45 +00:00
David Serduke
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.
2007-12-04 01:51:07 +00:00
David Serduke
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.
...
Now, if anything is returned from the extra function it will overwrite the return value of the event handlers. This should only effect custom events unless someone had an extra function that returned a value other than false which would have been ignored before.
2007-12-03 21:41:10 +00:00
David Serduke
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.
...
While adding unit testing I noticed the stop() unit test wasn't working correctly because the element was hidden so I fixed it and added more unit tests around the new functionality. I also added a cursor:pointer to the css (because for a long time I didn't know they were clickable).
2007-11-30 21:36:49 +00:00
David Serduke
37902e86b1
Fixed a problem with changeset [3841] where a function could no longer be .extend()-ed.
2007-11-30 08:39:49 +00:00
David Serduke
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.
2007-11-29 19:07:20 +00:00
David Serduke
b6d70a7ce3
Back out one of the changes from the previous commit that wasn't necessary to fix the bug and might not be desired.
2007-11-28 23:53:54 +00:00
David Serduke
95c0265486
Fixed #1908 by testing to make sure it isn't null before checking the nodeType.
2007-11-28 23:42:16 +00:00
David Serduke
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.
2007-11-28 23:13:59 +00:00