This document has:
...
...
...
]]>
The correct order is thead, tfoot, tbody, so this is invalid:
...
...
...