Skip to content

Commit dd100bf

Browse files
committed
bug 6158; fixing replaceWith from throwing errors on non existant elements; fixing semicolon
1 parent c9ef09c commit dd100bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/manipulation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ var testReplaceWith = function(val) {
799799
var set = jQuery("<div/>").replaceWith(val("<span>test</span>"));
800800
equals( set[0].nodeName.toLowerCase(), "span", "Replace the disconnected node." );
801801
equals( set.length, 1, "Replace the disconnected node." );
802-
802+
803803
var non_existant = jQuery('#does-not-exist').replaceWith( val("<b>should not throw an error</b>") );
804-
equals( non_existant.length, 0, "Length of non existant element." )
804+
equals( non_existant.length, 0, "Length of non existant element." );
805805

806806
var $div = jQuery("<div class='replacewith'></div>").appendTo("body");
807807
// TODO: Work on jQuery(...) inline script execution

0 commit comments

Comments
 (0)