Illustrating the Insert.After bug in IE7

This web page serves to illustrate a bug in IE7 when using the Prototype Insert.After command to add rows to an existing table.

To run the test, click the [+] next to 2006. This executes an Ajax call to read data from an external file (testdata.htm) and insert its contents after the 2006 table row.

In Firefox, the drilldown data shows up in the proper format: rows are ordered as they are in the source file (1st, 2nd, vsR, vsL). In IE7, the drilldown data shows up in reversed order, despite the fact that the source file is the same. Obviously, IE flips the data when inserting it.

Derek Jeter's Batting Stats

Year G AB R H 2B 3B HR RBI BB IBB SO SH SF HBP AVG OBP SLG OPS G/F
2003 119 482 87 156 25 3 10 52 43 2 88 13 3 1 .324 .393 .450 .844 2.41
2004 154 643 111 188 44 1 23 78 46 1 99 14 16 2 .292 .352 .471 .823 1.49
2005 159 654 122 202 25 5 19 70 77 3 117 11 7 3 .309 .389 .450 .839 2.69
+ 2006 154 623 118 214 39 3 14 97 69 4 102 12 7 4 .343 .417 .483 .900 3.23
Total 586 2402 438 760 133 12 66 297 235 10 406 50 33 10 .316 .387 .464 .852 2.31