MCPcopy Index your code
hub / github.com/Alphanimble/htmlstream / resetPatchState

Function resetPatchState

src/patch-streaming-html.ts:931–937  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

929
930/** Reset patch state when doing a full innerHTML replace */
931export function resetPatchState(container: HTMLElement): void {
932 container.querySelectorAll("table").forEach((table) => {
933 delete table.dataset.shRowCount;
934 delete table.dataset.shTheadRowCount;
935 delete table.dataset.shLayoutFixed;
936 });
937}
938
939/** Build renderable HTML from strip-only track (no premature </tr>) */
940export function assembleStreamHtml(track: string): string {

Callers 2

resetStreamDomFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected