mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
bug 6158; fixing replaceWith from throwing errors on non existant elements; fixing semicolon
This commit is contained in:
parent
c9ef09c800
commit
dd100bf5ac
@ -801,7 +801,7 @@ var testReplaceWith = function(val) {
|
||||
equals( set.length, 1, "Replace the disconnected node." );
|
||||
|
||||
var non_existant = jQuery('#does-not-exist').replaceWith( val("<b>should not throw an error</b>") );
|
||||
equals( non_existant.length, 0, "Length of non existant element." )
|
||||
equals( non_existant.length, 0, "Length of non existant element." );
|
||||
|
||||
var $div = jQuery("<div class='replacewith'></div>").appendTo("body");
|
||||
// TODO: Work on jQuery(...) inline script execution
|
||||
|
Loading…
Reference in New Issue
Block a user