Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 5099303.html
blobc3392502f9b910cd29f03e73a7d524be49685dc9
1 <p>This tests extending an editable selection across non-editable content. Everything in the region below should be selected.</p>
2 <div id="div" contenteditable="true">x<span contenteditable="false">xx</span>x</div>
4 <script>
5 var sel = window.getSelection();
6 var div = document.getElementById("div");
7 sel.collapse(div, 0);
8 sel.modify("extend", "forward", "character");
9 sel.modify("extend", "forward", "character");
10 sel.modify("extend", "forward", "character");
11 </script>