summaryrefslogtreecommitdiff
path: root/editor/reftests/824080-7.html
blob: d09e1b5bad3e931ee2de19ef490cd4cf9e9f2224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
    function doTest()
    {
      document.getSelection().selectAllChildren(document.body);
      var editor = document.getElementById("editor");
      editor.focus();
      editor.selectionStart = 2;
      editor.selectionEnd = 4;
      editor.blur();
      editor.focus();
    }
  </script>
</head>
<body onload="doTest()">
<p>normal text</p>
<textarea id="editor">textarea</textarea>
</body>
</html>