gecko/parser/htmlparser/tests/reftest/bug592656-1.html
Henri Sivonen ea24105625 Bug 592656 part 1 - Use the current parser-inserted script as the insertion point key. r=jonas, a=blocking2.0-final.
--HG--
extra : rebase_source : 92320d48b27c984e25c72be6dafbaef9d6133038
2010-09-06 10:41:26 +03:00

23 lines
618 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>document.write() from script-inserted inline scripts and script@onload</title>
</head>
<body>
1
<script>
function write(num) {
document.write(num + " ");
}
write(2);
document.write("\u003Cscript src='data:text/javascript,write(3)'>\u003C/script> 4 \u003Cscript>write(5)\u003C/script>");
var s = document.createElement("script");
s.textContent = "write(6)";
document.body.appendChild(s);
write(7);
document.write("\u003Cscript src='data:text/javascript,write(8)' onload='scriptload()'>\u003C/script> 13 \u003Cscript>write(14)\u003C/script>");
write(15);
</script>
</body>
</html>