| <html> |
| <head> |
| <script> |
| function debug(str) { |
| pre = document.getElementById('console'); |
| txt = document.createTextNode(str + '\n') |
| pre.appendChild(txt) |
| } |
| function runTests() { |
| if (window.layoutTestController) |
| layoutTestController.dumpAsText() |
| |
| var div = document.createElement("div") |
| div.innerHTML = ""Text"<br>new line" |
| |
| if (div.innerText != '"Text"\nnew line') |
| debug("FAILURE: innerText was \"" + div.innerText + "\"") |
| else |
| debug("SUCCESS") |
| } |
| </script> |
| </head> |
| <body onload="runTests()"> |
| 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. |
| <pre id="console"> |
| </body> |
| </html> |