7 document
.getElementById('console').appendChild(document
.createTextNode(str
))
12 if (window
.layoutTestController
)
13 layoutTestController
.dumpAsText();
16 document
.appendChild(document
.createElementNS("http://www.w3.org/1999/xhtml", "html"));
17 debug("FAILURE: Did not throw exception and should throw node hierarchy error.");
21 debug("FAILURE: Threw an exception with a code other than 3; should throw node hierarchy error.");
31 <body onload=
"runTest();">
32 This tests that a document only supports one document element.
33 If the test is successful, 'SUCCESS' will be displayed below, otherwise 'FAILURE' and a reason will be displayed.
34 <pre id=
"console"></pre>