OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <style> | |
4 | |
5 html body { } | |
6 | |
7 </style> | |
8 <script> | |
9 | |
10 if (window.testRunner) | |
11 testRunner.dumpAsText(); | |
12 | |
13 function runTest() | |
14 { | |
15 document.body.addEventListener("DOMNodeInserted", function() { }, false)
; | |
16 var foo = document.getElementById("foo"); | |
17 var bar = document.getElementById("bar"); | |
18 bar.className = " "; | |
19 bar.appendChild(foo); | |
20 // Test complete. If didn't crash at this point, clean up. | |
21 bar.removeChild(foo); | |
22 } | |
23 | |
24 </script> | |
25 </head> | |
26 <body onload="runTest()"> | |
27 <p>Tests to see if registering an empty DOMNodeInserted event handler and di
rtying the tree just right can cause attach re-entrancy with textarea. | |
28 <p>Passes if doesn't crash. | |
29 <div id="foo"> | |
30 <textarea> </textarea> | |
31 <ul><li><li></ul> | |
32 <iframe></iframe> | |
33 </div> | |
34 <div id="bar"></div> | |
35 </body> | |
36 </html> | |
OLD | NEW |