https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 643f37b68305d90ecfa148f81db63891c30e4620 authored by Fabrice Desré on 23 February 2015, 18:13:02 UTC
Bug 1135737 - Disable addons on b2g 2.2 r=me a=me
Tip revision: 643f37b
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