(table: HTMLTableElement)
| 680 | } |
| 681 | |
| 682 | function seedRowCountsFromDom(table: HTMLTableElement): void { |
| 683 | if (table.dataset.shTheadRowCount === undefined) { |
| 684 | const thead = table.querySelector("thead"); |
| 685 | table.dataset.shTheadRowCount = String( |
| 686 | thead |
| 687 | ? thead.querySelectorAll("tr:not([data-sh-partial])").length |
| 688 | : 0, |
| 689 | ); |
| 690 | } |
| 691 | if (table.dataset.shRowCount === undefined) { |
| 692 | const tbody = table.querySelector("tbody"); |
| 693 | table.dataset.shRowCount = String(tbody ? countBodyRows(tbody) : 0); |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | function findActiveTable(container: HTMLElement): HTMLTableElement | null { |
| 698 | const tables = container.querySelectorAll("table"); |
no test coverage detected