https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 84e1d76bc388941302ac54d5b6e8c5ec5caed1a2 authored by Rail Aliiev on 02 September 2014, 17:17:35 UTC
Bug 1029851 - Tracking bug for 02-sep-2014 migration work. r=hwine IGNORE BROKEN CHANGESETS CLOSED TREE a=release ba=release
Tip revision: 84e1d76
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