summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/autofocus/autofocus-leaves-iframe-ref.html
blob: e74e2753dc1aa214057b204f23904f6eb1b5e40f (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 srcdoc="<input>"></iframe>
    <input></input>
  </body>
</html>