Commit Graph

151 Commits

Author SHA1 Message Date
Daniel Chatfield
569d064fc9 Fix #12127. IE9/10 checks fall off the box on clone. Close gh-873. 2012-07-25 09:32:33 -04:00
Dave Methvin
335bdf2b1a Remove a few stray spaces in unit tests. 2012-07-10 21:44:03 -04:00
Uri Gilad
f843a7062f Fix #10517. before() and after() on disconnected node should return multiple nodes. Closes gh-851. 2012-07-10 10:14:43 -04:00
Uri Gilad
21b0db7993 Fix #11962. Standardize getter return values for empty sets. 2012-07-09 23:06:51 -04:00
Chad Killingsworth
de9bed319e Make unit tests friendly to Closure Compiler. Closes gh-845.
Conflicts:
    	test/unit/effects.js
    	test/unit/offset.js
2012-07-05 15:52:42 -04:00
timmywil
b418fa1f09 UPDATE SIZZLE: completed rewrite for better things!
Remove reverse in traversing for comma selectors. Sizzle's handling of commas is now more consistent.
2012-07-02 11:34:26 -04:00
Rick Waldron
7ff3da186c Unit tests are linted and passing. 2012-06-21 15:30:24 -04:00
Sindre Sorhus
ea9ec95276 Fix #11231, (append|prepend|before|after) w/ array of jQuery objects.
Closes gh-666, thanks to @rkatic!
2012-06-15 22:29:02 -04:00
Vladimir Zhuravlev
9c28a320c3 Fix #11566, allow appending to DocumentFragment, closes gh-814. 2012-06-15 21:37:01 -04:00
Dave Methvin
83dfb99ea9 Tweak test for #11743 in an attempt to placate Jenkins.
I can't get the current test to fail locally or in Browserstack, but suspect it may have something to do with badjson.js.
2012-06-11 22:35:04 -04:00
jaubourg
ac48a19b92 Some work to modularize ajax later on. 2012-06-11 14:00:16 +02:00
Mike Sherov
5f35b3d9f9 Fix #11857. Modularize css.js, add dependency management. Closes gh-816.
See the pull request for more info on the dependency management details.
2012-06-10 21:54:16 -04:00
Richard Gibson
742872984e Fix #11743: Don't mask script errors in jQuery.ajax, closes gh-795. 2012-05-31 08:31:13 -07:00
timmywil
a8d9d05388 Add quick-start documentation for testing with QUnit and using jQuery's helper methods. 2012-05-29 13:13:26 -04:00
Oleg
abd2a07498 Fix #8894. Ensure .appendTo creates a new set in oldIE. 2012-04-16 21:57:41 -04:00
Yehuda Katz
6bc08c2b2f Remove Ajax requirement for simple XML tests
Previously, all jQuery tests that wanted an XML
document would make an Ajax request to go through
jQuery's XML parsing logic in jQuery.ajax. Now,
use jQuery.parseXML instead.

This removes the need for the Ajax server for
these tests, improves their performance, and
decouples simple core tests from Ajax.

(with scottgonzalez)
2012-04-15 17:41:54 -04:00
Rick Waldron
5181ce0f35 Amends #10324. Remove object markup fixture; create programmatically 2012-04-11 15:40:03 -04:00
Rick Waldron
62a4c84503 Fix #10324. IE9 fumbles the innerHTML on object elements. 2012-04-10 21:38:11 -04:00
Oleg
c04bfce556 Fixes #11338, .replaceWith should work on detached nodes. 2012-04-05 12:53:36 -04:00
cmcnulty
4cd57d727a Fix 11528. Exclude link/html5 tags from innerHTML path on oldIE. 2012-04-05 12:26:20 -04:00
timmywil
a29d482894 Update Sizzle and add test for sizzle getText fix. Removes usage of innerText. Fixes #11153. 2012-03-30 17:10:25 -04:00
Rick Waldron waldron.rick@gmail.com
379a137016 Failing test (http://gyazo.com/0a7285e1d10039bc8ec8bc340fac15a9.png)
Signed-off-by: Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>
2012-03-23 11:31:05 -04:00
Rick Waldron waldron.rick@gmail.com
619f0d908a Guard against exceptions when clearing safeChildNodes.
Supplements #11356 and fixes unit test failures in FF 3.6.
2012-03-06 12:54:51 -05:00
Sindre Sorhus
92cd999097 Fix #11217. WebKit clone() loses check if name follows checked attribute.
Please folks, hold your questions. We don't explain em, we just fix em.
2012-03-02 13:55:58 -05:00
Rick Waldron waldron.rick@gmail.com
f0732c1e41 Fix #11323. Consistently use rscriptType in jQuery.clean() 2012-03-02 13:13:43 -05:00
Richard Gibson
dec2804c78 Fix #11359: preserve contents for cloned scripts 2012-02-23 23:09:31 -05:00
Rick Waldron waldron.rick@gmail.com
8db3fb13a5 Fix whitespace mismatch introduced in bf7a4df22a 2012-02-10 16:17:12 -05:00
Arne de Bree
bf7a4df22a Fix #11291. Always clone XML docs with a genuine .cloneNode(). 2012-02-09 20:48:21 -05:00
Rick Waldron
499658970b Adds test to support Sizzle getText patch for document fragments. Fixes #10864. 2012-01-20 16:47:49 -05:00
Richard Gibson
6c2a501de4 Fix #5571. Setters should treat undefined as a no-op and be chainable. 2011-12-06 15:25:38 -05:00
Dave Methvin
0de484d483 Use .wrapAll to wrap both text nodes in #10812 so IE9 likey. 2011-11-17 14:15:42 -05:00
Dave Methvin
dd845a2c0f Fix #10812, let .before() and .after() work on empty collections. 2011-11-17 11:47:56 -05:00
timmywil
0cc806fd88 Update Sizzle. Adds document to acceptable nodeTypes for .text(). Fixes #10724. 2011-11-08 15:47:03 -05:00
timmywil
f0e43fad37 Refactor clone a bit to only create one clone on any given codepath 2011-11-08 09:48:57 -05:00
timmywil
41b31d7386 Remove test of the invalid object for IE9's sake; Rewrite the appropriate support test for html5 clone caching. Fixes #10682 2011-11-08 00:05:33 -05:00
Rick Waldron
66e65c8168 Fix busted rnoshimcache. Correctly clone detached unknown elems. Fixes #10667, #10670.
- \s => |, Removes 4 bytes from gzipped build

- Adds tests for clone attributes, children and events
2011-11-07 21:22:04 -05:00
Toby Brain
47c605f693 Fix #10177. Pass correct index to function-parameter of .wrap 2011-11-06 16:59:41 -05:00
Mike Sherov
f35ba5e699 Fix #10691. Remove all instances of equals() and same(), as these are deprecated in QUnit. 2011-11-06 15:27:42 -05:00
Rick Waldron
92c8404012 Fixes jQuery.fragments cache and adds tests. Fixes #10682 2011-11-05 23:06:53 -04:00
timmywil
f3a4d261ec Landing pull request 550. IE6,7,8 cannot use cached fragments from unknown elems. Fixes #10501.
More Details:
- https://github.com/jquery/jquery/pull/550
- http://bugs.jquery.com/ticket/10501
2011-10-23 16:08:10 -04:00
timmywil
3ad0ba62f0 Do not call getElements on a script tag. Avoids unnecessary execution. Fixes #10176. 2011-10-12 00:06:54 -04:00
Dave Methvin
d638aa9c6d Allow more cases to use innerHTML in the .html method.
Thanks @cmcnulty for the pull and the patience!
2011-09-21 23:05:26 -04:00
timmywil
b03648c2a3 Remove stop argument in manipulation test, which no longer sets a timeout 2011-09-20 09:58:20 -04:00
Rick Waldron
9ecdb2472b Landing pull request 490. 1.7 HTML5 Support for innerHTML, clone & style. Fixes #6485.
More Details:
 - https://github.com/jquery/jquery/pull/490
 - http://bugs.jquery.com/ticket/6485
2011-09-19 16:42:36 -04:00
rwldrn
5c3b9e0c24 jQuery.clone() check that destination child nodes are not null. Fixes #9587 2011-06-15 11:14:52 -04:00
timmywil
9d4033d629 Add test for appending an xml element to another. Supplements #9370. 2011-05-25 20:48:59 -04:00
Rick Waldron
ec829431fe Landing pull request 365. jQuery.buildFragment, ensure doc is a document; Fixes #8950.
More Details:
 - https://github.com/jquery/jquery/pull/365
 - http://bugs.jquery.com/ticket/8950
2011-05-13 12:26:17 -04:00
John Resig
f794f48f02 Adding in test case to support #9211. 2011-05-11 11:43:37 -04:00
jaubourg
391398cf23 Fixes #9221. Wraps openings of html comments and CDATA blocks found at the beginning of inserted script elements into a javascript block comment so that the new implementation of globalEval will not throw an exception in IE (execScript being less lenient than eval). Unit tests added. 2011-05-11 14:13:07 +02:00
John Resig
bfad45fe45 Fix problem with appending multiple string arguments in IE 6. Fixes #9072. 2011-05-03 15:02:26 -04:00