OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script type="text/javascript"> | |
5 function log(msg) | |
6 { | |
7 document.getElementById('res').innerHTML = document.getElementById('res').in nerHTML + msg + "<br>"; | |
8 } | |
9 | |
10 function testSelection() | |
11 { | |
12 if (window.testRunner) { | |
13 testRunner.dumpAsText(); | |
14 var input = document.getElementById('val1'); | |
15 input.selectionStart = 3; | |
16 input.selectionEnd = 5; | |
17 input.value = "Parsed"; | |
18 log('Slection start: ' + input.selectionStart + ' and end: ' + inpu t.selectionEnd); | |
harpreet.sk
2014/04/28 16:09:04
I checked this layout test on the browser and it w
| |
19 } | |
20 } | |
21 </script> | |
22 </head> | |
23 <body onload="testSelection()"> | |
24 <input id="val1" type="text" /> | |
25 <div id="res"></div> | |
26 </body> | |
27 </html> | |
OLD | NEW |