Integrate media query evaluation into HTML5 event loop
[WebKit-https.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.testRunner)
14         window.testRunner.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>