\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