Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / activeElement.html
1 <html>
2     <head>
3         <script>
4             function test()
5             {
6                 if (window.testRunner)
7                     testRunner.dumpAsText();
8                 log(document.activeElement);
9                 document.getElementById('one').focus();
10                 log(document.activeElement + " id: " + document.activeElement.id);
11                 document.getElementById('two').focus();
12                 log(document.activeElement + " id: " + document.activeElement.id);
13                 document.getElementById('two').blur();
14                 log(document.activeElement);
15             }
16             function log(msg)
17             {
18                 document.getElementById("console").appendChild(document.createTextNode(msg + "\n"));
19             }
20         </script>
21     </head>
22     <body onload="test()">
23         <input id="one"><input id="two">
24         <br>
25         <pre id="console"></pre>
26     </body>
27 </html>