| OLD | NEW |
| (Empty) |
| 1 <p>This tests for a bug when moving the caret backward through a misspelled word
. Once the caret is no longer adjacent to it it should be marked as misspelled.<
/p> | |
| 2 <div id="div" contenteditable="true"><br></div> | |
| 3 | |
| 4 <script> | |
| 5 var div = document.getElementById("div"); | |
| 6 div.focus(); | |
| 7 document.execCommand("InsertText", false, "This sentence ends with a misspelled
word asd."); | |
| 8 var selection = window.getSelection(); | |
| 9 selection.modify("move", "backward", "character"); | |
| 10 selection.modify("move", "backward", "character"); | |
| 11 selection.modify("move", "backward", "character"); | |
| 12 selection.modify("move", "backward", "character"); | |
| 13 selection.modify("move", "backward", "character"); | |
| 14 selection.modify("move", "backward", "character"); | |
| 15 </script> | |
| OLD | NEW |