https://github.com/mozilla/gecko-dev
Raw File
Tip revision: b08342623f36b7f63b20c547f1b313fb076e74b2 authored by ffxbld on 03 December 2013, 04:30:06 UTC
Added FIREFOX_26_0_RELEASE FIREFOX_26_0_BUILD1 tag(s) for changeset 6d7564bf9e88. DONTBUILD CLOSED TREE a=release
Tip revision: b083426
placeholder-9.html
<!DOCTYPE html>
<html class="reftest-wait">
  <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
  <!-- Test: when focused, value reset should 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