placeholder-4.html 477 B

12345678910111213141516171819
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <!-- Test: value has to be shown if set via javascript -->
  4. <script type="text/javascript">
  5. function setValue()
  6. {
  7. document.getElementById('p1').value = "my value";
  8. }
  9. function disableReftestWait()
  10. {
  11. document.documentElement.className = '';
  12. }
  13. </script>
  14. <body onload="setValue(); disableReftestWait();">
  15. <input type="text" id="p1" value="" placeholder="my placeholder">
  16. </body>
  17. </html>