https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 2dd3b4c1c4d29ffc96013d07f10f58851418fcd3 authored by Chris Jones on 25 January 2013, 19:51:16 UTC
Bug 834760: Null-check mAttachedWidgetListener. r=mwu a=blocking-b2g
Tip revision: 2dd3b4c
placeholder-9.html
<!DOCTYPE html>
<html class="reftest-wait">
  <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
  <!-- Test: when focused, value reset should show placeholder. -->
  <script type="text/javascript">
    function focusPlaceholder()
    {
      document.getElementById('p1').focus();
    }
    function resetValue()
    {
      document.getElementById('p1').value = '';
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

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