(container: HTMLElement)
| 695 | } |
| 696 | |
| 697 | function findActiveTable(container: HTMLElement): HTMLTableElement | null { |
| 698 | const tables = container.querySelectorAll("table"); |
| 699 | if (tables.length === 0) { |
| 700 | return null; |
| 701 | } |
| 702 | return tables[tables.length - 1] as HTMLTableElement; |
| 703 | } |
| 704 | |
| 705 | function patchTableRows( |
| 706 | container: HTMLElement, |