Switched to using DOM Fragments in domManip.

This commit is contained in:
John Resig 2008-12-19 04:37:54 +00:00
parent 2875460f63
commit 132b8de614
2 changed files with 53 additions and 50 deletions

View file

@ -258,10 +258,10 @@ test("jQuery('html')", function() {
reset();
foo = false;
var s = jQuery("<script>var foo='test';</script>")[0];
var s = jQuery("<script>foo='test';</script>")[0];
ok( s, "Creating a script" );
ok( !foo, "Make sure the script wasn't executed prematurely" );
jQuery("body").append(s);
jQuery("body").append("<script>foo='test';</script>");
ok( foo, "Executing a scripts contents in the right context" );
reset();