Skip to content

Commit

Permalink
Use .wrapAll to wrap both text nodes in #10812 so IE9 likey.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Nov 17, 2011
1 parent dd845a2 commit 0de484d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/manipulation.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 0de484d

Please sign in to comment.