MCPcopy Index your code
hub / github.com/ampproject/amphtml / getBodyElement

Method getBodyElement

src/friendly-iframe-embed.js:548–552  ·  view source on GitHub ↗

* @return {!HTMLBodyElement} * @visibleForTesting

()

Source from the content-addressed store, hash-verified

546 * @visibleForTesting
547 */
548 getBodyElement() {
549 return /** @type {!HTMLBodyElement} */ (
550 (this.iframe.contentDocument || this.iframe.contentWindow.document).body
551 );
552 }
553
554 /**
555 * Force remeasure inside FIE doc when iframe is resized.

Callers 2

enterFullOverlayModeMethod · 0.95
leaveFullOverlayModeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected