| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <style> </style> | 2 <style> </style> |
| 3 </head> | 3 </head> |
| 4 <body> | 4 <body> |
| 5 <script> | 5 <script> |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 var docElement = document.documentElement; | 8 var docElement = document.documentElement; |
| 9 textArea = document.createElement("textarea"); | 9 textArea = document.createElement("textarea"); |
| 10 textArea.setAttribute("autofocus", ""); | 10 textArea.setAttribute("autofocus", ""); |
| 11 textArea.appendChild(document.head); | 11 textArea.appendChild(document.head); |
| 12 textArea.addEventListener("DOMFocusIn", function () { docElement.innerHTML = "";
}, false); | 12 textArea.addEventListener("DOMFocusIn", function () { docElement.innerHTML = "";
}, false); |
| 13 docElement.appendChild(textArea); | 13 docElement.appendChild(textArea); |
| 14 document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", n
ull).adoptNode(textArea); | 14 document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", n
ull).adoptNode(textArea); |
| 15 window.setTimeout(function() { | 15 window.setTimeout(function() { |
| 16 document.body.innerHTML = "PASS unless crash."; | 16 document.body.innerHTML = "PASS unless crash."; |
| 17 testRunner.notifyDone(); | 17 testRunner.notifyDone(); |
| 18 }, 0); | 18 }, 0); |
| 19 </script> | 19 </script> |
| 20 </body> | 20 </body> |
| OLD | NEW |