layout/base/crashtests/358729-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/crashtests/358729-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<script>
     1.7 +<![CDATA[
     1.8 +
     1.9 +var HTML_NS = "http://www.w3.org/1999/xhtml";
    1.10 +
    1.11 +function foo()
    1.12 +{
    1.13 +  var DIVa = document.getElementById('a'); 
    1.14 +
    1.15 +  var DIVb = document.createElementNS(HTML_NS, 'div'); 
    1.16 +  DIVb.appendChild(document.createTextNode('DIVb')); 
    1.17 +  DIVa.appendChild(DIVb);
    1.18 +  
    1.19 +  document.body.offsetHeight; 
    1.20 +  
    1.21 +  var DIVc = document.createElementNS(HTML_NS, 'div'); 
    1.22 +  DIVc.appendChild(document.createTextNode('DIVc'));
    1.23 +  DIVb.appendChild(DIVc);
    1.24 +  
    1.25 +  document.documentElement.removeAttribute("class");
    1.26 +}
    1.27 +
    1.28 +]]>
    1.29 +</script>
    1.30 +</head>
    1.31 +
    1.32 +<body onload="setTimeout(foo, 30)">
    1.33 +
    1.34 +<div>
    1.35 +
    1.36 +<table border="1">
    1.37 +  <tr>
    1.38 +    <td>
    1.39 +      <span dir="ltr">
    1.40 +        span
    1.41 +        <th>
    1.42 +          <div id="a"></div>
    1.43 +        </th>
    1.44 +      </span>
    1.45 +    </td>
    1.46 +  </tr>
    1.47 +</table>
    1.48 +
    1.49 +<div><span dir="rtl">RTL</span></div>
    1.50 +</div>
    1.51 +
    1.52 +
    1.53 +
    1.54 +</body>
    1.55 +</html>

mercurial