Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ isInFie
Function
isInFie
src/iframe-helper.js:599–604 ·
view source on GitHub ↗
(element)
Source
from the content-addressed store, hash-verified
597
* @
return
{boolean}
598
*/
599
export
function
isInFie(element) {
600
return
(
601
element.classList.contains(
'i-amphtml-fie'
) ||
602
!!closestAncestorElementBySelector(element,
'.i-amphtml-fie'
)
603
);
604
}
Callers
8
isCookieAllowed
Function · 0.90
getMacros
Method · 0.90
isAlwaysFixed
Method · 0.90
allowParentPostMessage_
Method · 0.90
isInAd_
Method · 0.90
maybeSetTransparentBody_
Method · 0.90
isAnimationWorkletSupported_
Method · 0.90
isCookieAllowed_
Method · 0.90
Calls
2
closestAncestorElementBySelector
Function · 0.90
contains
Method · 0.45
Tested by
no test coverage detected