Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: content/test/data/accessibility/html/contenteditable-descendants-with-selection.html

Issue 2931893002: More precise use of multiline state (Closed)
Patch Set: Remove unnecessary changes Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698