5 pre
= document
.getElementById('console');
6 txt
= document
.createTextNode(str
+ '\n')
10 if (window
.testRunner
)
11 testRunner
.dumpAsText()
13 var div
= document
.createElement("div")
14 div
.innerHTML
= ""Text"<br>new line"
16 if (div
.innerText
!= '"Text"\nnew line')
17 debug("FAILURE: innerText was \"" + div
.innerText
+ "\"")
23 <body onload=
"runTests()">
24 This tests that innerText works on an element that has no renderer associated. If the test is successful the text
"SUCCESS" should be shown below.