Stupid-Table-Plugin icon indicating copy to clipboard operation
Stupid-Table-Plugin copied to clipboard

Allow th tags in tbody

Open skipchris opened this issue 4 years ago • 1 comments

Previously, a th tag inside a tbody > tr would cause issues with sort.

This is bad! We want to encourage <th scope="row"> in our markup. :)

This 1-line commit fixes that, and updates tests to match.

skipchris avatar Jun 29 '20 14:06 skipchris

@skipchris thanks for this .. it was useful. Especially when using "sticky" table headers.. ref for example https://css-tricks.com/a-table-with-both-a-sticky-header-and-a-sticky-first-column/

peterwake avatar Sep 15 '21 11:09 peterwake