<html>
<head>
    <script>
        function runTest() {
            if (window.testRunner)
                testRunner.dumpAsText();
                
            var doc = document.implementation.createHTMLDocument("");
            doc.open();
            doc.write('<html><noscript></noscript><canvas></canvas></html>')
        }
    </script>
</head>
<body onload="runTest()">
    <div>
    This test that adding a noscript tag into a document created using createHTMLDocument doesn't crash.
    </div>
    <div>SUCCESS!</div>
</html>
