rem: $("#main").html("<script>ok(scriptorder++ == 0, 'Script is executed in order');ok($('#scriptorder').length == 0,'Execute before html')<\/script><span id='scriptorder'><script>ok(scriptorder++ == 1, 'Script is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script></span><script>ok(scriptorder++ == 2, 'Script is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script>"); 
add:  $("#main").html("<script>ok(scriptorder++ == 0, 'Script is executed in order');ok($('#scriptorder').length == 1,'Execute after html (even though appears before)')<\/script><span id='scriptorder'><script>ok(scriptorder++ == 1, 'Script (nested) is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script></span><script>ok(scriptorder++ == 2, 'Script (unnested) is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script>"); 
context: test("html(String)", function() {	expect(11);	var div = $("#main > div");	div.html("<b>test</b>");	var pass = true;	for ( var i = 0; i < div.size(); i++ ) {		if ( div.get(i).childNodes.length != 1 ) pass = false;	}	ok( pass, "Set HTML" );	reset();	// using contents will get comments regular, text, and comment nodes	var j = $("#nonnodes").contents();	j.html("<b>bold</b>");	equals( j.html().toLowerCase(), "<b>bold</b>", "Check node,textnode,comment with html()" );	$("#main").html("<select/>");	$("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>");	equals( $("#main select").val(), "O2", "Selected option correct" );	stop();	$("#main").html('<script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');	$("#main").html('foo <form><script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script></form>');	$("#main").html("<script>ok(scriptorder++ == 0, 'Script is executed in order');ok($('#scriptorder').length == 0,'Execute before html')<\/script><span id='scriptorder'><script>ok(scriptorder++ == 1, 'Script is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script></span><script>ok(scriptorder++ == 2, 'Script is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script>");	setTimeout( start, 100 );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/9ea8017f86c48ab624fbdc0e55a79110d9c61a9f/core.js/buggy/test/unit/core.js