https://github.com/mozilla/gecko-dev
Raw File
Tip revision: dd116b95d37bdfb221c50c62edd2b2d406d53b29 authored by Wes Kocher on 29 May 2014, 00:00:32 UTC
Backed out changeset 94eef72cb9b7 (bug 993901) for causing OSX bc1 to frequently fail in browser_tabopen_reflows.js
Tip revision: dd116b9
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