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
= '';
20 <body onload=
"focusPlaceholder();">
21 <input type=
"text" id=
"p1" value=
"" placeholder=
"old placeholder" onfocus=
"setPlaceholder(); disableReftestWait();">