blob: 0951affa7365361eb5cde3f0f2ca7eb2cba84836 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.dumpEditingCallbacks();
}
var ta = document.getElementById('ta');
ta.focus();
document.execCommand("SelectAll");
}
</script>
</head>
<body onload="test()">
This tests that select all works in a readonly textarea, without selecting the surrounding text.
<br>
<textarea id="ta" readonly>This text should be selected</textarea>
</body>
</html>