Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <script type="text/javascript"> |
michael@0 | 5 | function boom() |
michael@0 | 6 | { |
michael@0 | 7 | var col1 = document.createElement("col"); |
michael@0 | 8 | col1.setAttribute("width", "100"); |
michael@0 | 9 | var next = document.getElementById("col2"); |
michael@0 | 10 | |
michael@0 | 11 | next.parentNode.insertBefore(col1, next); |
michael@0 | 12 | reflow(); |
michael@0 | 13 | col1.removeAttribute("width"); |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | function reflow() { document.documentElement.offsetHeight; } |
michael@0 | 17 | |
michael@0 | 18 | </script> |
michael@0 | 19 | </head> |
michael@0 | 20 | <body onload="boom();"> |
michael@0 | 21 | <table border="2" id="table"> |
michael@0 | 22 | <col width=200 id="col2"> |
michael@0 | 23 | <tr> |
michael@0 | 24 | <td>100?</td><td>200</td> |
michael@0 | 25 | </tr> |
michael@0 | 26 | </table> |
michael@0 | 27 | </BODY> |
michael@0 | 28 | </HTML> |