blob: 216f1a9178e8f1325d96ad5fd0acddfbd2ab09e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<body onload="runTest()">
<script>
function runTest() {
if (window.layoutTestController)
layoutTestController.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>
|