summaryrefslogtreecommitdiff
path: root/layout/base/tests/bug632215-ref.html
blob: 980b5c46a074cbb142adfe6cb576f78db62367e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <body>
    <iframe src="data:text/html,<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>