https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 3c5c76a179dd899eec16ed8efb1306968985a764 authored by Benjamin Beurdouche on 15 December 2021, 16:53:05 UTC
Bug 1746221 - land NSS NSS_3_68_2_RTM UPGRADE_NSS_RELEASE, r+a=ryanvm
Tip revision: 3c5c76a
css-required-dyn-4.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.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