blob: e919c36196d9ee060ee8c7298464c5ba07b75796 [file] [log] [blame]
<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 = "&quot;Text&quot;<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>