Bug 1942006 - Upstream a variety of Servo-specific code from Servo's downstream fork...
[gecko.git] / layout / reftests / forms / placeholder / placeholder-18.html
blob159d5d7e27b5326c955b8ba8e7ebe9cff9edcc61
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()
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";
14 function disableReftestWait()
16 document.documentElement.className = '';
18 </script>
19 <body onload="setPlaceholder(); disableReftestWait();">
20 <input type="text" id="p1" value="" placeholder="my placeholder">
21 </body>
22 </html>