css-required-dyn-6.html 565 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <!-- Test: Remove the required attribute from an element to make it optional. -->
  4. <link rel='stylesheet' type='text/css' href='css-required-style-2.css'>
  5. <script type="text/javascript">
  6. function removeRequired()
  7. {
  8. document.getElementById('i').removeAttribute('required');
  9. }
  10. function disableReftestWait()
  11. {
  12. document.documentElement.className = '';
  13. }
  14. </script>
  15. <body onload="removeRequired(); disableReftestWait();">
  16. <input type="text" id="i" required>
  17. </body>
  18. </html>