Skip to content

Commit cbf4b19

Browse files
vimzhfb55
andauthored
fix: table section tags should implicitly close other table sections (#2390)
* fix: table section tags should implicitly close other table sections Opening a <thead>, <tbody>, or <tfoot> should auto-close any currently open table section, including the row and cell elements on top of it. Previously <tfoot> was missing from the close set, and <thead> had no entry at all, so a <tbody> after <tfoot> (or <thead> after <tbody>) would nest incorrectly instead of being siblings under <table>. Expanded tableSectionTags to include tr, td, and th so the top-of-stack close loop can peel off row/cell elements to reach the section beneath. Ref: https://html.spec.whatwg.org/multipage/syntax.html#optional-tags * fix: remove tuple type annotations from mock.calls destructuring The `: [string]` annotations are incompatible with vitest's `any[][]` typing for mock.calls, causing the TypeScript lint check to fail. * fix: bump vitest minimum to 4.1.1 for exactOptionalPropertyTypes compat vitest 4.1.0 shipped broken types in @vitest/runner that are incompatible with exactOptionalPropertyTypes, causing lint:ts to fail. Fixed upstream in 4.1.1. --------- Co-authored-by: Felix Boehm <188768+fb55@users.noreply.github.com>
1 parent e081474 commit cbf4b19

4 files changed

Lines changed: 184 additions & 152 deletions

File tree

0 commit comments

Comments
 (0)