Backed out changeset b94afd94ed9c (bug 1924861) for causing multiple bc failures...
[gecko.git] / layout / reftests / forms / placeholder / placeholder-8.html
blob9c1ac995aa62cdb2788d0090478b3747c64df300
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
4 <!-- Test: when focused, if value='', newest placeholder should be shown. -->
5 <script type="text/javascript">
6 function focusPlaceholder()
8 document.getElementById('p1').focus();
10 function setPlaceholder()
12 document.getElementById('p1').placeholder = 'my placeholder';
14 function disableReftestWait()
16 document.documentElement.className = '';
18 </script>
20 <body onload="focusPlaceholder();">
21 <input type="text" id="p1" value="" placeholder="old placeholder" onfocus="setPlaceholder(); disableReftestWait();">
22 </body>
23 </html>