placeholder-18.html (600B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <!-- Test: placeholder should appear with dynamic DOM modifications --> 4 <script type="text/javascript"> 5 function setPlaceholder() 6 { 7 var i = document.getElementById('p1'); 8 i.focus(); 9 i.blur(); 10 i.value = "not empty"; 11 i.value = ""; 12 i.value = "my value"; 13 } 14 function disableReftestWait() 15 { 16 document.documentElement.className = ''; 17 } 18 </script> 19 <body onload="setPlaceholder(); disableReftestWait();"> 20 <input type="text" id="p1" value="" placeholder="my placeholder"> 21 </body> 22 </html>