Fixed an issue with script nodes being removed incorrectly, fixes #3737.
This commit is contained in:
parent
afb05081c0
commit
29bf601f34
2 changed files with 5 additions and 2 deletions
|
@ -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:" :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue