This document has:

  <table>
    <thead><tr><td>...</td></tr></thead>
    <tfoot><tr><td>...</td></tr></tfoot>
    <tbody><tr><td>...</td></tr></tbody>
  </table>

The correct order is thead, tfoot, tbody, so this is valid:

...
...
...