| document.getElementById('console').appendChild(document.createTextNode(str)) |
| document.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml", "html")); |
| debug("FAILURE: Did not throw exception and should throw node hierarchy error."); |
| debug("FAILURE: Threw an exception with a code other than 3; should throw node hierarchy error."); |
| <body onload="runTest();"> |
| This tests that a document only supports one document element. |
| If the test is successful, 'SUCCESS' will be displayed below, otherwise 'FAILURE' and a reason will be displayed. |