blob: 6f2e8653e8a384add2c5061fa9764e585d1ab522 [file] [log] [blame]
<html>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<body>
<div id="result"></div>
<textarea name="area1" id="area1" rows="5" cols="40">
line 1
line 2
line 3
</textarea>
<script>
if (window.accessibilityController) {
var result = document.getElementById("result");
var area1 = document.getElementById("area1");
area1.focus();
var textArea = accessibilityController.focusedElement;
textArea.setSelectedTextRange(4,0);
result.innerText += "(4,0) = " + textArea.selectedTextRange + "\n\n";
textArea.setSelectedTextRange(8,2);
result.innerText += "(8,2) = " + textArea.selectedTextRange + "\n\n";
textArea.setSelectedTextRange(100,0);
result.innerText += "(100,0) = " + textArea.selectedTextRange + "\n\n";
}
</script>
</body>
</html>