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