| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 textarea { -webkit-appearance: textarea;} | 4 textarea { -webkit-appearance: textarea;} |
| 5 </style> | 5 </style> |
| 6 <script> | 6 <script> |
| 7 function log(msg) { | 7 function log(msg) { |
| 8 document.getElementById('res').innerHTML = document.getElementById('res'
).innerHTML + msg + "<br>"; | 8 document.getElementById('res').innerHTML = document.getElementById('res'
).innerHTML + msg + "<br>"; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 </head> | 43 </head> |
| 44 <body onload="test()"> | 44 <body onload="test()"> |
| 45 <br> | 45 <br> |
| 46 This tests onSelect for textareas. <br> | 46 This tests onSelect for textareas. <br> |
| 47 This also makes sure that the correct selection is restored when the element reg
ains focus.<br><br> | 47 This also makes sure that the correct selection is restored when the element reg
ains focus.<br><br> |
| 48 <textarea id="ta" onselect="log('onselect fired for textarea');" style="position
: absolute; top: 50; left: 10;">textarea with lots of fun content!</textarea> | 48 <textarea id="ta" onselect="log('onselect fired for textarea');" style="position
: absolute; top: 50; left: 10;">textarea with lots of fun content!</textarea> |
| 49 <div id="res" style="position: absolute; top: 100; left: 10;"></div> | 49 <div id="res" style="position: absolute; top: 100; left: 10;"></div> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| 52 | 52 |
| OLD | NEW |