https://github.com/mozilla/gecko-dev
Raw File
Tip revision: fc4b0ea1ea281e947ca1c83714be9c5185c010ff authored by ffxbld on 11 March 2012, 01:18:23 UTC
Added FIREFOX_11_0b8_RELEASE FIREFOX_11_0b8_BUILD1 tag(s) for changeset 0df2e93ff663. DONTBUILD CLOSED TREE a=release
Tip revision: fc4b0ea
placeholder-21.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: when focused, placeholder update shouldn't show placeholder. -->
  <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