Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textarea / textarea-autofocus-removal-while-focusing-with-style.html
blob8db91fa0b2d9aef6523600a31248c55a719b949d
1 <head>
2 <style> </style>
3 </head>
4 <body>
5 <script>
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 var docElement = document.documentElement;
9 textArea = document.createElement("textarea");
10 textArea.setAttribute("autofocus", "");
11 textArea.appendChild(document.head);
12 textArea.addEventListener("DOMFocusIn", function () { docElement.innerHTML = ""; }, false);
13 docElement.appendChild(textArea);
14 document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", null).adoptNode(textArea);
15 window.setTimeout(function() {
16 document.body.innerHTML = "PASS unless crash.";
17 testRunner.notifyDone();
18 }, 0);
19 </script>
20 </body>