Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/SandDance
/ isInDocument
Function
isInDocument
docs/external/js/react-dom.development.js:7041–7043 ·
view source on GitHub ↗
(node)
Source
from the content-addressed store, hash-verified
7039
}
7040
7041
function
isInDocument(node) {
7042
return
node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
7043
}
7044
7045
function
isSameOriginFrame(iframe) {
7046
try {
Callers
1
restoreSelection
Function · 0.85
Calls
1
containsNode
Function · 0.85
Tested by
no test coverage detected