Commit dd100bf5 authored by Jordan Boesch's avatar Jordan Boesch

bug 6158; fixing replaceWith from throwing errors on non existant elements; fixing semicolon

parent c9ef09c8
...@@ -801,7 +801,7 @@ var testReplaceWith = function(val) { ...@@ -801,7 +801,7 @@ var testReplaceWith = function(val) {
equals( set.length, 1, "Replace the disconnected node." ); equals( set.length, 1, "Replace the disconnected node." );
var non_existant = jQuery('#does-not-exist').replaceWith( val("<b>should not throw an error</b>") ); 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"); var $div = jQuery("<div class='replacewith'></div>").appendTo("body");
// TODO: Work on jQuery(...) inline script execution // TODO: Work on jQuery(...) inline script execution
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment