(node: Element)
| 318 | const iframes: HTMLElement[] = []; |
| 319 | |
| 320 | function findIframesInNode(node: Element) { |
| 321 | if (node.nodeType === Node.ELEMENT_NODE) { |
| 322 | if (tagNames.includes(node.tagName)) { |
| 323 | iframes.push(node as HTMLElement); |
| 324 | } |
| 325 | |
| 326 | if (node.shadowRoot) { |
| 327 | findIframesInNode(<any>node.shadowRoot); |
| 328 | } |
| 329 | |
| 330 | for (const child of node.children) { |
| 331 | findIframesInNode(child); |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | // Document → walk from its root element. Element → walk from itself. |
| 337 | const startEl = |
no test coverage detected
searching dependent graphs…