MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / countBodyRows

Function countBodyRows

src/patch-streaming-html.ts:672–680  ·  view source on GitHub ↗
(tbody: HTMLTableSectionElement)

Source from the content-addressed store, hash-verified

670}
671
672function 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
682function seedRowCountsFromDom(table: HTMLTableElement): void {
683 if (table.dataset.shTheadRowCount === undefined) {

Callers 3

seedRowCountsFromDomFunction · 0.85
patchTableRowsFunction · 0.85
initTableRowCountsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected