mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fixed an issue with script nodes being removed incorrectly, fixes #3737.
This commit is contained in:
@@ -899,7 +899,7 @@ test("append(String|Element|Array<Element>|jQuery)", function() {
|
||||
});
|
||||
|
||||
test("appendTo(String|Element|Array<Element>|jQuery)", function() {
|
||||
expect(6);
|
||||
expect(7);
|
||||
var defaultText = 'Try them out:'
|
||||
jQuery('<b>buga</b>').appendTo('#first');
|
||||
equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' );
|
||||
@@ -915,6 +915,9 @@ test("appendTo(String|Element|Array<Element>|jQuery)", function() {
|
||||
jQuery([document.getElementById('first'), document.getElementById('yahoo')]).appendTo('#sap');
|
||||
equals( expected, jQuery('#sap').text(), "Check for appending of array of elements" );
|
||||
|
||||
reset();
|
||||
ok( jQuery(document.createElement("script")).appendTo("body").length, "Make sure a disconnected script can be appended." );
|
||||
|
||||
reset();
|
||||
expected = document.querySelectorAll ?
|
||||
"This link has class=\"blog\": Simon Willison's WeblogYahooTry them out:" :
|
||||
|
||||
Reference in New Issue
Block a user