mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Use .wrapAll to wrap both text nodes in #10812 so IE9 likey.
This commit is contained in:
parent
dd845a2c0f
commit
0de484d483
@ -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<Element>|jQuery)", function() {
|
test("insertBefore(String|Element|Array<Element>|jQuery)", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user