summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-default/submit-button/default-submit-button-6.html
blob: b01952c43e474b67224457b5db5d78fbc4fe2828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: when there is no submit button and one is added,
    there is a default submit button -->
  <link rel='stylesheet' type='text/css' href='default-submit-button-style.css'>
  <script type="text/javascript">
    function onLoadHandler()
    {
      document.getElementById('b1').type = "bad-value";
      document.documentElement.className = '';
    }
  </script>

  <body onload="onLoadHandler();">
    <form>
      <button type='submit' id='b1'>submit</button>
      <button type='reset'>text</button>
    </form>
  </body>
</html>