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

Side by Side Diff: LayoutTests/editing/input/orphan-set-selection-range.html

Issue 1019353007: Merge 190609 "Ignore setSelectionRange when node is un-parented." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2311/
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <script src="../../resources/js-test.js"></script> 1 <script src="../../resources/js-test.js"></script>
2 <script> 2 <script>
3 description = "Calling setSelectionRange() on an orphaned text node should be a no-op."; 3 description = "Calling setSelectionRange() on an orphaned text node should be a no-op.";
4 4
5 div = document.createElement('div'); 5 div = document.createElement('div');
6 input = document.createElement('input'); 6 input = document.createElement('input');
7 div.appendChild(input); 7 div.appendChild(input);
8 input.setSelectionRange(0, 0); 8 input.setSelectionRange(0, 0);
9 doc = document.implementation.createDocument("", null); 9 doc = document.implementation.createDocument("", null);
10 doc.appendChild(div); 10 doc.appendChild(div);
11 document.execCommand("FindString", false, "test"); 11 document.execCommand("FindString", false, "test");
12 </script> 12 </script>
OLDNEW
« no previous file with comments | « LayoutTests/NeverFixTests ('k') | LayoutTests/editing/input/orphan-set-selection-range-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698