summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug644428-1.html
blob: 9fe4d17fea5ddcefb63e698a7011a82a8a5fe14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
  <head>
    <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  </head>
  <body onload="setupCaret()" spellcheck="false">
    <div contenteditable>a<span>b</span>c </div>
    <script>
      function setupCaret() {
        var div = document.querySelector("div");
        div.focus();
        var sel = window.getSelection();
        sel.collapse(div, 3);
        synthesizeKey("VK_BACK_SPACE", {});
        synthesizeKey("VK_BACK_SPACE", {});
      }
    </script>
  </body>
</html>