layout/reftests/dom/multipleappendwithinput.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/dom/multipleappendwithinput.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<script type="text/javascript">
     1.7 +
     1.8 +function boom()
     1.9 +{
    1.10 +  document.body.offsetHeight;
    1.11 +
    1.12 +  var parent = document.getElementById("parent");
    1.13 +
    1.14 +  var newelt = document.createElement("div");
    1.15 +  newelt.appendChild(document.createTextNode(3));
    1.16 +  parent.appendChild(newelt);
    1.17 +
    1.18 +  newelt = document.createElement("div");
    1.19 +  newelt.appendChild(document.createTextNode(4));
    1.20 +  parent.appendChild(newelt);
    1.21 +
    1.22 +  var input = document.createElement("input");
    1.23 +  input.setAttribute("type", "text");
    1.24 +  parent.appendChild(input);
    1.25 +
    1.26 +  document.body.offsetHeight;
    1.27 +  document.documentElement.className = "";
    1.28 +}
    1.29 +
    1.30 +</script>
    1.31 +</head>
    1.32 +
    1.33 +<body onload="boom();">
    1.34 +<div id="parent">
    1.35 +  <div>1</div>
    1.36 +  <div>2</div>
    1.37 +</div>
    1.38 +</body>
    1.39 +</html>
    1.40 \ No newline at end of file

mercurial