<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>DOM Core Stress Test: Float Node Creation</title>
  <script type="text/javascript"><![CDATA[
    var max = 1000;
    function doTest() {
      var start = new Date;
      var container = document.getElementById('container');
      for (var count = 0; count < max; ++count) {
        var leftFloat = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
        container.appendChild(leftFloat);
        var text = document.createTextNode('Float ' + count);
        leftFloat.appendChild(text);
      }
      var end = new Date;
      document.getElementById('result').childNodes[0].nodeValue = 'Test took ' + ((end - start) / 1000) + ' seconds.';
    }
  ]]></script>
  <style type="text/css">
    #container > * { float: left; }
  </style>
 </head>
 <body onload="doTest()">
  <p id="result">Testing...</p>
  <div id="container"/>
 </body>
</html>
