Bug 1935035 - Update a macOS-only test that hard-codes child count.
[gecko.git] / layout / reftests / forms / placeholder / placeholder-22.html
blob7ae54e8e71befc465eeeadfca104f2dfc165a789
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <!-- Test: when focused, clearing placeholder attribute should work. -->
4 <script type="text/javascript">
5 function focusPlaceholder()
7 document.getElementById('p1').focus();
9 function setPlaceholder()
11 document.getElementById('p1').placeholder = '';
13 function disableReftestWait()
15 document.documentElement.className = '';
17 </script>
19 <body onload="focusPlaceholder();">
20 <input type="text" id="p1" value="" placeholder="my placeholder" onfocus="setPlaceholder(); disableReftestWait();">
21 </body>
22 </html>