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"; 12 document.body.appendChild(iframe); 13 iframe.contentDocument.open(); 14 iframe.contentDocument.write(spec); 15 iframe.contentDocument.close(); 16 document.body.removeChild(iframe); 17 }); 18 </script> 19 </body> 20