We're using 3.6, which had no native TABLE code, so we inserted one. We're upgrading to 4.x, which has native TABLE handling. The two are not compatible. I tried for a while to make the two work side-by-side, but it just wasn't possible.
The new code closely follows standard HTML, while the current code was designed to make it simpler.