https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 1616edc376e8da07ccd4a6dcb838dede50a08bf3 authored by B2G Bumper Bot on 28 October 2015, 10:34:49 UTC
Bumping manifests a=b2g-bump
Tip revision: 1616edc
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