Commit 0de484d4 authored by Dave Methvin's avatar Dave Methvin

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

parent dd845a2c
...@@ -799,7 +799,7 @@ test("before and after w/ empty object (#10812)", function() { ...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment