parser/htmlparser/tests/reftest/bug592656-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/reftest/bug592656-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<title>document.write() from script-inserted inline scripts and script@onload</title>
     1.8 +</head>
     1.9 +<body>
    1.10 +1
    1.11 +<script>
    1.12 +function write(num) {
    1.13 +  document.write(num + " ");
    1.14 +}
    1.15 +write(2);
    1.16 +document.write("\u003Cscript src='data:text/javascript,write(3)'>\u003C/script> 4 \u003Cscript>write(5)\u003C/script>");
    1.17 +var s = document.createElement("script");
    1.18 +s.textContent = "write(6)";
    1.19 +document.body.appendChild(s);
    1.20 +write(7);
    1.21 +document.write("\u003Cscript src='data:text/javascript,write(8)' onload='scriptload()'>\u003C/script> 13 \u003Cscript>write(14)\u003C/script>");
    1.22 +write(15);
    1.23 +</script>
    1.24 +</body>
    1.25 +</html>

mercurial