mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d42236f376
--HG-- rename : layout/reftests/forms/placeholder/placeholder-7.html => layout/reftests/forms/placeholder/placeholder-15.html rename : layout/reftests/forms/placeholder/placeholder-8.html => layout/reftests/forms/placeholder/placeholder-16.html rename : layout/reftests/forms/placeholder/placeholder-9.html => layout/reftests/forms/placeholder/placeholder-17.html rename : layout/reftests/forms/placeholder/placeholder-focus-ref.html => layout/reftests/forms/placeholder/placeholder-readonly-focus-ref.html
23 lines
610 B
HTML
23 lines
610 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<!-- Test: when focused, value reset shouldn't show placeholder. -->
|
|
<script type="text/javascript">
|
|
function focusPlaceholder()
|
|
{
|
|
document.getElementById('p1').focus();
|
|
}
|
|
function resetValue()
|
|
{
|
|
document.getElementById('p1').value = '';
|
|
}
|
|
function disableReftestWait()
|
|
{
|
|
document.documentElement.className = '';
|
|
}
|
|
</script>
|
|
|
|
<body onload="focusPlaceholder();">
|
|
<input type="text" id="p1" value="my value" placeholder="my placeholder" onfocus="resetValue(); disableReftestWait();">
|
|
</body>
|
|
</html>
|