https://github.com/mozilla/gecko-dev
Raw File
Tip revision: edc73188e280052f55faffd89ec10389b0b6641d authored by seabld on 29 December 2011, 05:22:23 UTC
Added tag SEAMONKEY_2_7b2_RELEASE for changeset FIREFOX_10_0b2_BUILD1. CLOSED TREE a=release
Tip revision: edc7318
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