css-required-dyn-2.html 556 B

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