summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/input/text/select.html
blob: eba0c382443dcdeafdc2a846d6939f0395227331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html class="reftest-wait">
  <head>
    <script type="text/javascript">
      function finishTest() {
        document.documentElement.removeAttribute("class");
      }
      function runTest() {
        var field = document.getElementById('field');
        field.focus();
        field.disabled = true;
        field.setSelectionRange(0, 4);
        field.disabled = false;
        field.select();
        setTimeout(finishTest, 0);
       }
    </script>
  </head>
  <body onload="runTest()">
    <input id="field" type="text" value="1234">
  </body>
</html>