gecko/layout/reftests/forms/placeholder/placeholder-7.html
Mounir Lamouri 54f1561afc Bug 457800 - Implement placeholder attribute for text input fields; r=ehsan,bzbarsky,bolter sr=roc ui-r=faaborg
--HG--
extra : rebase_source : 2e2f3a73553d720b32812603b0ce96c89b9a6261
2010-02-26 10:47:38 -08:00

20 lines
545 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when focused, element should show placeholder
Using a readonly input text to disable caret -->
<script type="text/javascript">
function focusPlaceholder()
{
document.getElementById('p1').focus();
}
function disableReftestWait()
{
document.documentElement.className = '';
}
</script>
<body onload="focusPlaceholder(); disableReftestWait();">
<input type="text" id="p1" value="" placeholder="my placeholder" readonly>
</body>
</html>