| 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 <meta name="viewport" content="width-device-width"> | 5 <meta name="viewport" content="width-device-width"> |
| 6 <title>Virtual Keyboard test page</title> | 6 <title>Virtual Keyboard test page</title> |
| 7 <script> |
| 8 function syncFocus() { |
| 9 var input = document.getElementById('text'); |
| 10 input.focus(); |
| 11 } |
| 12 function asyncFocus() { |
| 13 var input = document.getElementById('text'); |
| 14 setTimeout(function() { |
| 15 input.focus(); |
| 16 }, 0); |
| 17 } |
| 18 </script> |
| 7 </head> | 19 </head> |
| 8 <body> | 20 <body> |
| 9 <p> | 21 <p> |
| 10 <label id="blur">blur</label> | 22 <label id="blur">blur</label> |
| 11 <input id="text" type="text" placeholder="type=text"></input> | 23 <input id="text" type="text" placeholder="type=text"></input> |
| 24 <!-- test for crbug.com/642513 --> |
| 25 <button id="sync" onclick="syncFocus()">sync</button> |
| 26 <button id="async" onclick="asyncFocus()">async</button> |
| 12 </p> | 27 </p> |
| 13 </body> | 28 </body> |
| 14 </html> | 29 </html> |
| OLD | NEW |