<!DOCTYPE html>
<p id="log"></p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var div = document.createElement('div');
var s1 = document.createElement('script');
s1.appendChild(document.createTextNode('document.getElementById(\'log\').appendChild(document.createTextNode(\' First \'))'));
div.appendChild(s1);
var s2 = document.createElement('script');
s2.appendChild(document.createTextNode('document.getElementById(\'log\').appendChild(document.createTextNode(\' Second \'))'));
div.appendChild(s2);
document.body.appendChild(div);
</script>