OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src="../../resources/js-test.js"></script> | |
4 </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 i
nsertion point when replying to e-mail<br> | |
9 <a href="http://bugs.webkit.org/show_bug.cgi?id=11746">http://bugs.webkit.org/sh
ow_bug.cgi?id=11746</a></p> | |
10 </div> | |
11 <div> | |
12 <textarea id="ta" rows="5" cols="10"> | |
13 1 | |
14 2 | |
15 3 | |
16 4 | |
17 5 | |
18 6 | |
19 7 | |
20 8 | |
21 9 | |
22 10 | |
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'); | |
31 </script> | |
32 </body> | |
33 </html> | |
OLD | NEW |