| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <style> | 5 <style> |
| 6 input { | 6 input { |
| 7 width: 200px; | 7 width: 200px; |
| 8 font-size: 64px; | 8 font-size: 64px; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 </head> | 11 </head> |
| 12 <body> | 12 <body> |
| 13 <input dir="rtl" value="[[مقاله]]"> | 13 <input dir="rtl" value="[[مقاله]]"> |
| 14 <p> | 14 <p> |
| 15 The last character (and only the last character) should be | 15 The last character (and only the last character) should be |
| 16 selected in the text box above. | 16 selected in the text box above. |
| 17 </p> | 17 </p> |
| 18 <script> | 18 <script> |
| 19 var el = document.getElementsByTagName('input')[0]; | 19 var el = document.getElementsByTagName('input')[0]; |
| 20 el.focus(); |
| 20 el.setSelectionRange(0, 1); | 21 el.setSelectionRange(0, 1); |
| 21 </script> | 22 </script> |
| 22 </body> | 23 </body> |
| 23 </html> | 24 </html> |
| OLD | NEW |