summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-optional/css-optional-dyn-1.html
blob: 8b02ad7190bb22e9aeb8414ebe9535b38d510dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: Remove the required attribute to an input element
             to make it optional. -->
  <link rel='stylesheet' type='text/css' href='css-optional-style.css'>

  <script type="text/javascript">
    function removeRequired()
    {
      document.getElementById('i').removeAttribute('required');
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

  <body onload="removeRequired(); disableReftestWait();">
    <input id="i" required>
  </body>
</html>