https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 4c3fe34f7f0e09fa0dc597e29b52629ad0d4164a authored by Dustin J. Mitchell on 23 August 2019, 12:32:02 UTC
Bug 1562686 - revert remaining unnecessary bit of bug 1187245; r=glandium a=tomprince
Tip revision: 4c3fe34
placeholder-focus-pref.html
<!DOCTYPE html>
<html class="reftest-wait">
  <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
  <!-- Test: when focused, element should not placeholder when
       'dom.placeholder.show_on_focus' pref is false. -->
  <script type="text/javascript">
    function focusPlaceholder()
    {
      document.getElementById('p1').focus();
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

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