2 <html class=
"reftest-wait">
3 <!-- Test: when unfocused, if value='', newest placeholder should be shown -->
4 <link rel='stylesheet' type='text/css' href='placeholder-style.css'
>
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 unFocusPlaceholder()
16 document
.getElementById('p1').blur();
18 function disableReftestWait()
20 document
.documentElement
.className
= '';
24 <body onload=
"focusPlaceholder();">
25 <input type=
"text" id=
"p1" value=
"" placeholder=
"old placeholder" onfocus=
"setPlaceholder(); unFocusPlaceholder(); disableReftestWait();">