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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/style/highlight.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . Created 3 years, 10 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 <html> 1 <html>
2 <body><div id=e contenteditable style="-webkit-highlight:'green';">some highligh ted text</div> 2 <body><div id=e contenteditable style="-webkit-highlight:'green';">some highligh ted text</div>
3 <script> 3 <script>
4 var e = document.getElementById('e'); 4 var e = document.getElementById('e');
5 e.focus();
5 window.getSelection().collapse(e,0); 6 window.getSelection().collapse(e,0);
6 </script> 7 </script>
7 </body> 8 </body>
8 </html> 9 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698