https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 6f8cdf316a5ae7c9e89b354cb80dfdeb59071bb3 authored by ffxbld on 06 August 2015, 22:32:51 UTC
Added FIREFOX_40_0_RELEASE FIREFOX_40_0_BUILD4 tag(s) for changeset d2561e900801. DONTBUILD CLOSED TREE a=release
Tip revision: 6f8cdf3
css-required-dyn-6.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: Remove the required attribute from an element to make it optional. -->
  <link rel='stylesheet' type='text/css' href='css-required-style-2.css'>

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

  <body onload="removeRequired(); disableReftestWait();">
    <input type="text" id="i" required>
  </body>
</html>
back to top