simplify markup. if table does not have a THEAD element, abort