308752-2-inner.html (798B)
1 <html> 2 <head> 3 <script> 4 function init2() { 5 var one = document.getElementById('one'); 6 var four = document.getElementById('two'); 7 document.getElementsByTagName('table')[0].appendChild(one); 8 setTimeout('clickit()', 0); 9 } 10 11 function doe(){ 12 two.remove(); 13 } 14 function clickit() 15 { 16 var evt = document.createEvent("MouseEvents"); 17 evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); 18 document.body.dispatchEvent(evt); 19 } 20 window.addEventListener("load", init2); 21 window.addEventListener("click", doe); 22 </script> 23 </head> 24 <body> 25 <table style="border-collapse: collapse;"> 26 <tbody> 27 <tr><td rowspan="2">r11</td></tr> 28 <tr id="one"><td id="two">r21</td></tr> 29 <tr></tr> 30 </tbody> 31 </table> 32 Mozilla should not crash when clicking in the document 33 </body> 34 </html>