| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 function test() | |
| 5 { | |
| 6 document.getElementById("tf").setAttribute("results", 0); | |
| 7 document.execCommand("Redo"); | |
| 8 } | |
| 9 </script> | |
| 10 </head> | |
| 11 <body onload="test()"> | |
| 12 This tests that we don't crash when redoing an editing command after the
search field has been detached and reattached.<br> | |
| 13 <input type="search" id="tf"><br> | |
| 14 <script> | |
| 15 if (window.testRunner) | |
| 16 testRunner.dumpAsText(); | |
| 17 | |
| 18 document.getElementById("tf").focus(); | |
| 19 document.execCommand("InsertText", false, "test"); | |
| 20 document.execCommand("Undo"); | |
| 21 </script> | |
| 22 </body> | |
| 23 </html> | |
| OLD | NEW |