summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
blob: 90691568788d6ff1b7bdb5add812225c54f234e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html class="reftest-wait">
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function frameLoadHandler()
    {
      var i = document.createElement('input');
      i.autofocus = true;
      document.body.appendChild(i);
      setTimeout(document.documentElement.removeAttribute('class'), 0);
    }
  </script>
  <body>
    <iframe onload="frameLoadHandler();" srcdoc="<input autofocus>"></iframe>
  </body>
</html>