Switched to using DOM Fragments in domManip.
[jquery.git] / test / unit / core.js
index 6c670af..0d9b462 100644 (file)
@@ -258,10 +258,10 @@ test("jQuery('html')", function() {
 \r
        reset();\r
        foo = false;\r
-       var s = jQuery("<script>var foo='test';</script>")[0];\r
+       var s = jQuery("<script>foo='test';</script>")[0];\r
        ok( s, "Creating a script" );\r
        ok( !foo, "Make sure the script wasn't executed prematurely" );\r
-       jQuery("body").append(s);\r
+       jQuery("body").append("<script>foo='test';</script>");\r
        ok( foo, "Executing a scripts contents in the right context" );\r
 \r
        reset();\r