MCPcopy
hub / github.com/mathuo/dockview / findIframesInNode

Function findIframesInNode

packages/dockview-core/src/dom.ts:320–334  ·  view source on GitHub ↗
(node: Element)

Source from the content-addressed store, hash-verified

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 =

Callers 1

Calls 2

pushMethod · 0.80
includesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…