18 lines
599 B
HTML
18 lines
599 B
HTML
<body onload="runTest()">
|
|
<script>
|
|
function runTest() {
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
var div = document.createElement('div');
|
|
div.appendChild(document.body.parentElement);
|
|
var a = document.createElement('a');
|
|
a.innerHTML = '<x><html></html>';
|
|
|
|
document.appendChild(document.createElement('html'))
|
|
document.documentElement.innerHTML='<div>This tests that we won\'t crash when creating a new html element when the document does not ' +
|
|
'have a document element.</div><div>SUCCESS - Did not crash!</div>'
|
|
}
|
|
</script>
|
|
</body>
|