https://github.com/mozilla/gecko-dev
Raw File
Tip revision: a9eb4e9575f016d322653eff4ce5a5dcab7499c9 authored by Ryan VanderMeulen on 10 August 2015, 18:38:10 UTC
Merge mozilla-b2g37 to 2.2r. a=merge
Tip revision: a9eb4e9
placeholder-5.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: placeholder has to be shown if value is reseted via javascript -->
  <link rel='stylesheet' type='text/css' href='placeholder-style.css'>
  <script type="text/javascript">
    function setValue()
    {
      document.getElementById('p1').value = "";
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

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