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, value reset shouldn't show placeholder. -->
|
2010-02-26 10:47:38 -08:00
|
|
|
<script type="text/javascript">
|
|
|
|
function focusPlaceholder()
|
|
|
|
{
|
|
|
|
document.getElementById('p1').focus();
|
|
|
|
}
|
|
|
|
function resetValue()
|
|
|
|
{
|
|
|
|
document.getElementById('p1').value = '';
|
|
|
|
}
|
|
|
|
function disableReftestWait()
|
|
|
|
{
|
|
|
|
document.documentElement.className = '';
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2010-03-27 08:16:53 -07:00
|
|
|
<body onload="focusPlaceholder();">
|
|
|
|
<input type="text" id="p1" value="my value" placeholder="my placeholder" readonly onfocus="resetValue(); disableReftestWait();">
|
2010-02-26 10:47:38 -08:00
|
|
|
</body>
|
|
|
|
</html>
|