Account for tables with thead and tbody