Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 5081257-2.html
blobea8f9662f757e3590b0883acaae53341673e7fa4
1 <html>
2 <body contenteditable="true">
3 <p>This tests for setting the selection at a position inside a document in designMode. You should see a caret at the start of the body.</p>
5 </body>
6 <script>
7 document.designMode = "on";
8 var sel = window.getSelection();
9 var range = document.createRange();
10 range.setStart(document, 0);
11 range.setEnd(document, 0);
12 sel.addRange(range);
13 </script>
14 </html>