MCPcopy Create free account
hub / github.com/angular/components / getWindow

Function getWindow

src/cdk/a11y/interactivity-checker/interactivity-checker.ts:274–277  ·  view source on GitHub ↗

Gets the parent window of a DOM node with regards of being inside of an iframe.

(node: HTMLElement)

Source from the content-addressed store, hash-verified

272
273/** Gets the parent window of a DOM node with regards of being inside of an iframe. */
274function getWindow(node: HTMLElement): Window {
275 // ownerDocument is null if `node` itself *is* a document.
276 return (node.ownerDocument && node.ownerDocument.defaultView) || window;
277}

Callers 1

isTabbableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected