(tbody: HTMLTableSectionElement)
| 670 | } |
| 671 | |
| 672 | function countBodyRows(tbody: HTMLTableSectionElement): number { |
| 673 | let count = 0; |
| 674 | tbody.querySelectorAll("tr:not([data-sh-partial])").forEach((tr) => { |
| 675 | if (!tr.querySelector("th")) { |
| 676 | count++; |
| 677 | } |
| 678 | }); |
| 679 | return count; |
| 680 | } |
| 681 | |
| 682 | function seedRowCountsFromDom(table: HTMLTableElement): void { |
| 683 | if (table.dataset.shTheadRowCount === undefined) { |
no outgoing calls
no test coverage detected