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

Unified Diff: third_party/WebKit/LayoutTests/fast/ruby/select-ruby.html

Issue 2969973002: Select exact nodes in fast/ruby/select-ruby.html (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/ruby/select-ruby.html
diff --git a/third_party/WebKit/LayoutTests/fast/ruby/select-ruby.html b/third_party/WebKit/LayoutTests/fast/ruby/select-ruby.html
index b8abe9c14dab85dec847a50e67cff464b5b77dc5..7cc04d382e9a27d00decd41c3f80a511bde75e89 100644
--- a/third_party/WebKit/LayoutTests/fast/ruby/select-ruby.html
+++ b/third_party/WebKit/LayoutTests/fast/ruby/select-ruby.html
@@ -15,9 +15,7 @@ body {
<!-- All texts inside the ruby should be highlighted. -->
a<ruby>1<rt>1</rt>2<rt>2</rt>3<rt>3</rt>4<rt>4</rt></ruby>b
<script>
-var range = document.createRange();
-range.selectNodeContents(document.body);
-window.getSelection().addRange(range);
+window.getSelection().setBaseAndExtent(document.body.childNodes[2], 1, document.body.childNodes[4], 1)
</script>
</body>
</html>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698