https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 899c4da66f0c15117a7a744a2ce47765448f3993 authored by ffxbld on 11 March 2014, 00:25:43 UTC
Added FIREFOX_28_0_RELEASE FIREFOX_28_0_BUILD1 tag(s) for changeset 4095d6ad79b1. DONTBUILD CLOSED TREE a=release
Tip revision: 899c4da
css-required-dyn-5.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: Add the required attribute to an element to make it required. -->
  <link rel='stylesheet' type='text/css' href='css-required-style-2.css'>

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

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