This is in logical order and not in document order. The rowIndex does take into account sections THEAD TFOOT or TBODY within the Table placing THEAD rows first in the index followed by TBODY rows followed by TFOOTrows. version DOM Level 2...TFOOT , or TBODY ) within the table, placing THEAD rows first in...