| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @WIN-ALLOW:IA2_STATE_EDITABLE | 2 @WIN-ALLOW:IA2_STATE_EDITABLE |
| 3 @WIN-ALLOW:IA2_STATE_MULTI_LINE |
| 4 @WIN-ALLOW:IA2_STATE_SINGLE_LINE |
| 3 @WIN-ALLOW:LINKED | 5 @WIN-ALLOW:LINKED |
| 4 @WIN-ALLOW:ia2_hypertext=* | 6 @WIN-ALLOW:ia2_hypertext=* |
| 5 @WIN-ALLOW:caret_offset* | 7 @WIN-ALLOW:caret_offset* |
| 6 @WIN-ALLOW:n_selections* | 8 @WIN-ALLOW:n_selections* |
| 7 @WIN-ALLOW:selection_start* | 9 @WIN-ALLOW:selection_start* |
| 8 @WIN-ALLOW:selection_end* | 10 @WIN-ALLOW:selection_end* |
| 9 @BLINK-ALLOW:editable* | 11 @BLINK-ALLOW:editable* |
| 10 @BLINK-ALLOW:richlyEditable* | 12 @BLINK-ALLOW:richlyEditable* |
| 11 @BLINK-ALLOW:*textSel* | 13 @BLINK-ALLOW:*textSel* |
| 12 --> | 14 --> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 26 | 28 |
| 27 <script> | 29 <script> |
| 28 var selection = window.getSelection(); | 30 var selection = window.getSelection(); |
| 29 var selectionRange = document.createRange(); | 31 var selectionRange = document.createRange(); |
| 30 var contenteditable = document.getElementById('contenteditable'); | 32 var contenteditable = document.getElementById('contenteditable'); |
| 31 contenteditable.focus(); | 33 contenteditable.focus(); |
| 32 selectionRange.selectNodeContents(contenteditable); | 34 selectionRange.selectNodeContents(contenteditable); |
| 33 selection.removeAllRanges(); | 35 selection.removeAllRanges(); |
| 34 selection.addRange(selectionRange); | 36 selection.addRange(selectionRange); |
| 35 </script> | 37 </script> |
| OLD | NEW |