2010-02-26 21:47:38 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
2012-05-24 14:54:26 +04:00
|
|
|
<link rel='stylesheet' type='text/css' href='placeholder-style.css'>
|
2010-05-17 14:20:17 +04:00
|
|
|
<!-- Test: when focused, element should show placeholder. -->
|
2010-02-26 21:47:38 +03:00
|
|
|
<script type="text/javascript">
|
|
|
|
function focusPlaceholder()
|
|
|
|
{
|
|
|
|
document.getElementById('p1').focus();
|
|
|
|
}
|
|
|
|
function disableReftestWait()
|
|
|
|
{
|
|
|
|
document.documentElement.className = '';
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2010-03-27 18:16:53 +03:00
|
|
|
<body onload="focusPlaceholder();">
|
2010-10-19 17:11:07 +04:00
|
|
|
<input type="text" id="p1" value="" placeholder="my placeholder" onfocus="disableReftestWait();">
|
2010-02-26 21:47:38 +03:00
|
|
|
</body>
|
|
|
|
</html>
|