summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/autofocus/autofocus-leaves-iframe-ref.html
blob: 91cee7cbcee4b66f66bf66162a6e63cb4fbd849c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function loadHandler()
    {
      frames[0].document.getElementsByTagName('input')[0].onfocus = function() {
        document.documentElement.removeAttribute('class');
      }
      frames[0].document.getElementsByTagName('input')[0].focus();
    }
  </script>
  <body onload="loadHandler();">
    <iframe src="data:text/html,<input>"></iframe>
    <input></input>
  </body>
</html>