2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / inner-text-with-no-renderer.html
blobe919c36196d9ee060ee8c7298464c5ba07b75796
1 <html>
2 <head>
3 <script>
4 function debug(str) {
5 pre = document.getElementById('console');
6 txt = document.createTextNode(str + '\n')
7 pre.appendChild(txt)
9 function runTests() {
10 if (window.layoutTestController)
11 layoutTestController.dumpAsText()
13 var div = document.createElement("div")
14 div.innerHTML = "&quot;Text&quot;<br>new line"
16 if (div.innerText != '"Text"\nnew line')
17 debug("FAILURE: innerText was \"" + div.innerText + "\"")
18 else
19 debug("SUCCESS")
21 </script>
22 </head>
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.
25 <pre id="console">
26 </body>
27 </html>