(root: HTMLElement)
| 2393 | } |
| 2394 | |
| 2395 | function markNodesAsCreatedInitially(root: HTMLElement) { |
| 2396 | let current: Node | null = root; |
| 2397 | while (current) { |
| 2398 | setMarker(current); |
| 2399 | if (current.firstChild) { |
| 2400 | markNodesAsCreatedInitially(current.firstChild as HTMLElement); |
| 2401 | } |
| 2402 | current = current.nextSibling; |
| 2403 | } |
| 2404 | } |
| 2405 | |
| 2406 | function childrenOf(...nodes: Node[]): Node[] { |
| 2407 | const result: Node[] = []; |