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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/style/highlight.html
diff --git a/third_party/WebKit/LayoutTests/editing/style/highlight.html b/third_party/WebKit/LayoutTests/editing/style/highlight.html
index 2620bc5c7852b4fd6f93193e552167acba2c0dd1..3862348655c35b7148637a2a2a0056969bb2034b 100644
--- a/third_party/WebKit/LayoutTests/editing/style/highlight.html
+++ b/third_party/WebKit/LayoutTests/editing/style/highlight.html
@@ -2,6 +2,7 @@
<body><div id=e contenteditable style="-webkit-highlight:'green';">some highlighted text</div>
<script>
var e = document.getElementById('e');
+e.focus();
window.getSelection().collapse(e,0);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698