layout/tables/crashtests/460637-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/tables/crashtests/460637-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head><script type="text/javascript">
     1.6 +<![CDATA[
     1.7 +
     1.8 +  function boom() {
     1.9 +    var HTML_NS = "http://www.w3.org/1999/xhtml";
    1.10 +    var r = document.documentElement; while(r.firstChild) { r.removeChild(r.firstChild); }
    1.11 +    var table = document.createElementNS(HTML_NS, "table");
    1.12 +    table.setAttribute("border", "1");
    1.13 +    var text = document.createTextNode("\n ");
    1.14 +    table.appendChild(text);
    1.15 +    var tr1 = document.createElementNS(HTML_NS, "tr");
    1.16 +    table.appendChild(tr1);
    1.17 +    var tr2 = document.createElementNS(HTML_NS, "tr");
    1.18 +    var input = document.createElementNS(HTML_NS, "input");
    1.19 +    tr2.appendChild(input);
    1.20 +    table.appendChild(tr2);
    1.21 +    document.documentElement.appendChild(table);
    1.22 +    var tr3 = document.createElementNS(HTML_NS, 'tr');
    1.23 +    table.insertBefore(tr3, text);
    1.24 +    var td = document.createElementNS(HTML_NS, 'td');
    1.25 +    td.setAttribute('rowspan', 0);
    1.26 +    tr3.insertBefore(td, null);
    1.27 +    table.removeAttribute('border');
    1.28 +    var caption = document.createElementNS(HTML_NS, 'caption');
    1.29 +    table.insertBefore(caption, tr2);
    1.30 +    document.documentElement.removeAttribute("class");
    1.31 +  }
    1.32 +
    1.33 +  function ol(e) {
    1.34 +    window.removeEventListener("load", ol, false);
    1.35 +    setTimeout(boom, 400);
    1.36 +  }
    1.37 +  
    1.38 +  window.addEventListener("load", ol, false);
    1.39 +
    1.40 +]]></script>
    1.41 +</head>
    1.42 +
    1.43 +<body></body>
    1.44 +</html>

mercurial