https://github.com/mozilla/gecko-dev
Raw File
Tip revision: e3d0188ad77a950526290382e80d4d8a5de3738e authored by Justin Lebar on 01 August 2011, 17:38:04 UTC
Backing out dc9cf2842794 (bug 652399) because it disables libjpeg-turbo on Windows (bug 675568). a=legneato
Tip revision: e3d0188
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