summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
blob: 0f950ebe2742b0d90dc2b29b8f2439d2ec705230 (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();" src="data:text/html,<input autofocus>"></iframe>
  </body>
</html>