https://github.com/mozilla/gecko-dev
Raw File
Tip revision: db03bcd79f34b3e41a0eca7bc1bc8729459a8258 authored by ffxbld on 09 January 2015, 04:22:48 UTC
Added FIREFOX_35_0_RELEASE FIREFOX_35_0_BUILD3 tag(s) for changeset 32e36869f84a. DONTBUILD CLOSED TREE a=release
Tip revision: db03bcd
placeholder-22.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').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