MCPcopy Create free account
hub / github.com/ampproject/amphtml / getHeadOrFallback

Function getHeadOrFallback

ads/alp/handler.js:207–209  ·  view source on GitHub ↗

* Return if present or just the document element. * @param {!Document} doc * @return {!Element}

(doc)

Source from the content-addressed store, hash-verified

205 * @return {!Element}
206 */
207function getHeadOrFallback(doc) {
208 return doc.head || doc.documentElement;
209}
210
211/**
212 * Returns info about an ancestor that can perform A2A navigations

Callers 2

warmupStaticFunction · 0.85
warmupDynamicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected