summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug632215-ref.html
blob: b0e4bcff7fd56900b2713e2a157a785b8ef121b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <body>
    <iframe srcdoc="<body spellcheck=false>xx</body>"></iframe>
    <script>
      onload = function() {
        var i = document.querySelector("iframe");
        var d = i.contentDocument;
        var w = i.contentWindow;
        d.designMode = "on";
        i.focus();
        d.body.focus();
        w.getSelection().collapse(d.body.firstChild, 2);
      };
    </script>
  </body>
</html>