PerformanceTests/Parser/html-parser is only testing parsing of the head element
[WebKit-https.git] / PerformanceTests / Parser / html-parser.html
1 <!DOCTYPE html>
2 <body>
3 <pre id="log"></pre>
4 <script src="resources/runner.js"></script>
5 <script>
6 var spec = loadFile("resources/html5.html");
7
8 start(20, function() {
9     var iframe = document.createElement("iframe");
10     iframe.src = "about:blank";
11     iframe.style.display = "none";  // Prevent creation of the rendering tree, so we only test HTML parsing.
12     iframe.sandbox = '';  // Prevents loading of external scripts which would otherwise pause the parser.
13     document.body.appendChild(iframe);
14     iframe.contentDocument.open();
15     iframe.contentDocument.write(spec);
16     iframe.contentDocument.close();
17     document.body.removeChild(iframe);
18 });
19 </script>
20 </body>