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