gecko/layout/reftests/forms/placeholder/placeholder-4.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

19 lines
477 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: value has to be shown if set via javascript -->
<script type="text/javascript">
function setValue()
{
document.getElementById('p1').value = "my value";
}
function disableReftestWait()
{
document.documentElement.className = '';
}
</script>
<body onload="setValue(); disableReftestWait();">
<input type="text" id="p1" value="" placeholder="my placeholder">
</body>
</html>