blob: 6d3a70a97974e5b4d93bc2f1ef86cac29402ea8d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
function test()
{
if (window.testRunner)
testRunner.dumpAsText();
ta = document.getElementById('ta');
ta.disabled = false;
ta.focus();
if (window.eventSender) {
eventSender.keyDown('a', []);
var result = ta.value;
if (result == "a")
document.write("<pre>SUCCESS</pre>");
else
document.write("<pre>FAIL, result was '" + result + "'.</pre>");
}
}
</script>
</head>
<body onload="test();">
<p>Tests that toggling disabled state in a textarea leaves the textarea typeable.
To Test manually, load this page and type in the textarea. If you can type, then
the test succeeded.<p>
<textarea id="ta" disabled="disabled"></textarea>
</body>
</html>