https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 048d154c785685e37d388da1b9d870159459c584 authored by ffxbld on 04 August 2011, 09:25:21 UTC
Added tag FENNEC_6_0b5_BUILD1 for changeset 1e1def18cece. CLOSED TREE a=release
Tip revision: 048d154
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