[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / focus-remove-focuesed-node.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function focusinListener(evt) {
6     try {
7         this.parentNode.removeChild(this);
8     } catch(e) {
9     }
10 }
11
12 function test() {
13     if (window.layoutTestController)
14         window.layoutTestController.dumpAsText();
15     document.getElementById("a").addEventListener('focusin', focusinListener , false);
16     document.getElementById("a").focus();
17 }
18 </script>
19 </head>
20 <body onload="test();">
21 <p>Test for making sure that a crash does not happen when a focused node is removed in processing focusin eventListner.</p>
22 <pre id="console"></pre>
23 <h1 tabindex="0" id="a" ></h1>
24 </body>
25 </html>