Switched to using DOM Fragments in domManip.
This commit is contained in:
parent
2875460f63
commit
132b8de614
2 changed files with 53 additions and 50 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue