3 <script src="../resources/runner.js"></script>
5 var spec = PerfTestRunner.loadFile("resources/html5.html");
7 PerfTestRunner.run(function() {
8 var iframe = document.createElement("iframe");
9 iframe.style.display = "none"; // Prevent creation of the rendering tree, so we only test HTML parsing.
10 iframe.sandbox = ''; // Prevent external script loads which could cause write() to return before completing the parse.
11 document.body.appendChild(iframe);
12 iframe.contentDocument.open();
13 iframe.contentDocument.write(spec);
14 iframe.contentDocument.close();
15 document.body.removeChild(iframe);