summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/placeholder/placeholder-19.xul
blob: e176e0f9bf32f7a4e61490ea4a04cbbb9113d46b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        class="reftest-wait">
  <script type="text/javascript"><![CDATA[
    window.addEventListener("load", function() {
      var x = document.getElementById("x");
      x.value = "val";
      x.focus();x.blur();
      setTimeout(function() {
        x.value = "";
        x.hidden = true;
        setTimeout(function() {
          x.value = "value";
          x.hidden = false;
          x.focus();x.blur();
          document.documentElement.removeAttribute("class");
        }, 0);
      }, 0);
    }, false);
  ]]></script>
  <textbox id="x" placeholder="placeholder"/>
</window>