]> source.dussan.org Git - jquery.git/commitdiff
Use .wrapAll to wrap both text nodes in #10812 so IE9 likey.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 17 Nov 2011 19:15:42 +0000 (14:15 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 17 Nov 2011 19:15:42 +0000 (14:15 -0500)
test/unit/manipulation.js

index 0e8941621c68b34bf2c82c3e845008b75f8bdd49..f690b721ddab364c65d4ce54e55c13a5563f8be4 100644 (file)
@@ -799,7 +799,7 @@ test("before and after w/ empty object (#10812)", function() {
 
        var res = jQuery( "#notInTheDocument" ).before( "(" ).after( ")" );
        equal( res.length, 2, "didn't choke on empty object" );
-       equal( res.wrap("<div/>").parent().text(), "()", "correctly appended text" );
+       equal( res.wrapAll("<div/>").parent().text(), "()", "correctly appended text" );
 });
 
 test("insertBefore(String|Element|Array&lt;Element&gt;|jQuery)", function() {