386401-2.html (1413B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html lang="en-US" class="reftest-wait"> 4 <head> 5 <title>Testcase, bug 386401</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <meta http-equiv="Content-Style-Type" content="text/css"> 8 <meta http-equiv="Content-Script-Type" content="text/javascript"> 9 <style type="text/css"> 10 11 table { border-spacing: 2px; width: 30em; } 12 td { border: 1px solid; padding: 2px; } 13 tbody { overflow: scroll; } 14 15 </style> 16 <script type="text/javascript"> 17 18 function run() { 19 setTimeout(run2, 0); 20 } 21 22 function run2() { 23 var c = document.getElementById("appendhere"); 24 var newc = document.createElement("td"); 25 var t = document.createTextNode("A really big header"); 26 newc.appendChild(t); 27 c.parentNode.appendChild(newc); 28 document.documentElement.className = ""; 29 } 30 31 </script> 32 </head> 33 <body onload="run()"> 34 35 <table> 36 <thead><tr><td>Header</td><td id="appendhere">Header</td></tr></thead> 37 <tfoot><tr><td>Footer</td><td>Footer</td><td>Footer</td></tr></tfoot> 38 <tbody> 39 <tr><td>Cell</td><td>Cell</td><td>Cell</td></tr> 40 <tr><td>Cell</td><td>Cell</td><td>Cell</td></tr> 41 <tr><td>Cell</td><td>Cell</td><td>Cell</td></tr> 42 <tr><td>Cell</td><td>Cell</td><td>Cell</td></tr> 43 <tr><td>Cell</td><td>Cell</td><td>Cell</td></tr> 44 </tbody> 45 </table> 46 47 </body> 48 </html>