css-optional-dyn-1.html 568 B

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