Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / focus-remove-focuesed-node.html
blob94f4340cacf63a936ea7b5a0e3b1d8b5e4eac105
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function focusinListener(evt) {
6 try {
7 this.parentNode.removeChild(this);
8 } catch(e) {
12 function test() {
13 if (window.testRunner)
14 window.testRunner.dumpAsText();
15 document.getElementById("a").addEventListener('focusin', focusinListener , false);
16 document.getElementById("a").focus();
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>