https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 84b442cccbd02655d3e9665518b41c5183525851 authored by ffxbld on 18 May 2011, 01:40:03 UTC
Added tag FIREFOX_5_0b2_BUILD1 for changeset 40ea1355db3f. CLOSED TREE a=release
Tip revision: 84b442c
placeholder-22.html
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: when focused, placeholder update shouldn't show placeholder. -->
  <script type="text/javascript">
    function focusPlaceholder()
    {
      document.getElementById('p1').focus();
    }
    function setPlaceholder()
    {
      document.getElementById('p1').placeholder = '';
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

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