Use .wrapAll to wrap both text nodes in #10812 so IE9 likey.

This commit is contained in:
Dave Methvin 2011-11-17 14:15:42 -05:00
parent dd845a2c0f
commit 0de484d483

View File

@ -799,7 +799,7 @@ test("before and after w/ empty object (#10812)", function() {
var res = jQuery( "#notInTheDocument" ).before( "(" ).after( ")" ); var res = jQuery( "#notInTheDocument" ).before( "(" ).after( ")" );
equal( res.length, 2, "didn't choke on empty object" ); 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() { test("insertBefore(String|Element|Array&lt;Element&gt;|jQuery)", function() {