summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/placeholder/placeholder-4.html
blob: bfcce20b8cabf67e062966bf30df70afbae8e6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: value has to be shown if set via javascript -->
  <script type="text/javascript">
    function setValue()
    {
      document.getElementById('p1').value = "my value";
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

  <body onload="setValue(); disableReftestWait();">
    <input type="text" id="p1" value="" placeholder="my placeholder">
  </body>
</html>