2010-02-26 10:47:38 -08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
2010-05-17 03:20:17 -07:00
|
|
|
<!-- Test: when focused, element should show placeholder. -->
|
2010-02-26 10:47:38 -08:00
|
|
|
<script type="text/javascript">
|
|
|
|
function focusPlaceholder()
|
|
|
|
{
|
|
|
|
document.getElementById('p1').focus();
|
|
|
|
}
|
|
|
|
function disableReftestWait()
|
|
|
|
{
|
|
|
|
document.documentElement.className = '';
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2010-03-27 08:16:53 -07:00
|
|
|
<body onload="focusPlaceholder();">
|
|
|
|
<input type="text" id="p1" value="" placeholder="my placeholder" readonly onfocus="disableReftestWait();">
|
2010-02-26 10:47:38 -08:00
|
|
|
</body>
|
|
|
|
</html>
|