https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 137e4f612bdcc225bf086f1697ca1e9e75450820 authored by seabld on 24 September 2014, 05:12:24 UTC
Added tag SEAMONKEY_2_29_1_RELEASE for changeset FIREFOX_32_0_3_BUILD1. CLOSED TREE a=release
Tip revision: 137e4f6
placeholder-21.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: when focused, clearing placeholder attribute should work. -->
  <script type="text/javascript">
    function focusPlaceholder()
    {
      document.getElementById('p1').focus();
    }
    function setPlaceholder()
    {
      document.getElementById('p1').removeAttribute('placeholder');
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

  <body onload="focusPlaceholder();">
    <input type="text" id="p1" value="" placeholder="my placeholder" onfocus="setPlaceholder(); disableReftestWait();">
  </body>
</html>
back to top