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

Side by Side Diff: LayoutTests/editing/inserting/4960120-1.html

Issue 258063005: Blink does not respect input.selectionStart and input.selectionEnd for some cases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing changes asked in previous patch Created 6 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 <p>This tests for a bug where the first newline entered into a text area would b e lost.</p> 1 <p>This tests for a bug where the first newline entered into a text area would b e lost.</p>
2 <textarea id="textarea"></textarea> 2 <textarea id="textarea"></textarea>
3 3
4 <script> 4 <script>
5 var textarea = document.getElementById("textarea"); 5 var textarea = document.getElementById("textarea");
6 textarea.setSelectionRange(0, 0); 6 textarea.focus();
7 7
8 document.execCommand("InsertLineBreak"); 8 document.execCommand("InsertLineBreak");
9 </script> 9 </script>
OLDNEW
« no previous file with comments | « LayoutTests/editing/deleting/5290534.html ('k') | LayoutTests/editing/pasteboard/paste-removing-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698