| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <button type="button" id="button1">FOOO</button> |
| 5 <input type="text" id="input1"> |
| 6 <script> |
| 7 if (window.testRunner) |
| 8 window.testRunner.dumpAsText(); |
| 9 var button1 = document.getElementById('button1'); |
| 10 var input1 = document.getElementById('input1'); |
| 11 input1.setSelectionRange(0); |
| 12 input1.type = 'week'; |
| 13 var oSelection = window.getSelection(); |
| 14 document.execCommand('SelectAll'); |
| 15 oSelection.deleteFromDocument(); |
| 16 input1.value = 'foo'; |
| 17 </script> |
| 18 <p>Pass if it doesn't crash</p> |
| 19 </body> |
| 20 </html> |
| OLD | NEW |