https://github.com/mozilla/gecko-dev
Raw File
Tip revision: d4f831862a6928b62a9fc427d200712d8cbc14e4 authored by Christian Legnitto on 16 September 2011, 02:55:42 UTC
Backout bug 678588 due to the volume regression in bug 598774, a=LegNeato
Tip revision: d4f8318
placeholder-9.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>
back to top