summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1097242-1-ref.html
blob: dd62f18eeca8db0629d8a104e0a465f4e79f5b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
  <script>
    function test() {
      focus();
      var div = document.querySelector("div");
      div.focus();
      getSelection().collapse(div.firstChild, 0);
    }
  </script>
  <body onload="test()">
    <div contenteditable spellcheck="false" style="outline: none">foo<span>bar</span>baz</div>
  </body>
</html>