Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLHtmlElement / duplicate-html-element-crash.html
blob355b08df6d1800bfacea9074ef65327caaf81ada
1 <body onload="runTest()">
2 <script>
3 function runTest() {
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var div = document.createElement('div');
8 div.appendChild(document.body.parentElement);
9 var a = document.createElement('a');
10 a.innerHTML = '<x><html></html>';
12 document.appendChild(document.createElement('html'))
13 document.documentElement.innerHTML='<div>This tests that we won\'t crash when creating a new html element when the document does not ' +
14 'have a document element.</div><div>SUCCESS - Did not crash!</div>'
16 </script>
17 </body>