summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/placeholder/placeholder-9.html
blob: 35155c0120a10b1fd76ecaed804ebcf7bf419f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html class="reftest-wait">
  <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
  <!-- Test: when focused, value reset should show placeholder. -->
  <script type="text/javascript">
    function focusPlaceholder()
    {
      document.getElementById('p1').focus();
    }
    function resetValue()
    {
      document.getElementById('p1').value = '';
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

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