summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-default/submit-button/default-submit-button-7.html
blob: 85aa374533ffc735d37534f562e0cd290da573f9 (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').removeAttribute('type');
      document.documentElement.className = '';
    }
  </script>

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