blob: 82b51c584400905237b9a3e3b8d749627c2e034a [file] [log] [blame]
ddkilzerea952652006-12-20 11:05:35 +00001<html>
2<head>
mark.lam@apple.com93720da2013-09-07 23:31:07 +00003<script src="../../resources/js-test-pre.js"></script>
ddkilzerea952652006-12-20 11:05:35 +00004</head>
5<body>
6<div>
7<p>This tests the initial caret position for textareas.</p>
8<p>Bug 11746: REGRESSION(r14931): Outlook Web Access incorrectly positions the insertion point when replying to e-mail<br>
9<a href="http://bugs.webkit.org/show_bug.cgi?id=11746">http://bugs.webkit.org/show_bug.cgi?id=11746</a></p>
10</div>
11<div>
12<textarea id="ta" rows="5" cols="10">
131
142
153
164
175
186
197
208
219
2210
23</textarea>
24</div>
25<div id="console"></div>
26<script type="text/javascript">
27 var ta = document.getElementById('ta');
28 ta.focus();
29 shouldBe('ta.selectionStart', '0');
30 shouldBe('ta.selectionEnd', '0');
ddkilzerea952652006-12-20 11:05:35 +000031</script>
mark.lam@apple.com93720da2013-09-07 23:31:07 +000032<script type="text/javascript" src="../../resources/js-test-post.js"></script>
ddkilzerea952652006-12-20 11:05:35 +000033</body>
34</html>