summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-placeholder/textarea/placeholder-value-reset.html
blob: 92fc7d79bdfc3e5244f6b0001cc7bb528180305c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html class='reftest-wait'>
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function loadHandler()
    {
      document.getElementById('t').value = 'bar';
      document.getElementById('moz').value = 'foo';
      document.forms[0].reset();
      document.documentElement.className = '';
    }
  </script>
  <body onload='loadHandler();'>
    <form>
      <textarea id='t' placeholder='foo'></textarea>
      <textarea id='moz' placeholder='bar'></textarea>
    </form>
  </body>
</html>