MCPcopy
hub / github.com/ampproject/amphtml / getElementById

Method getElementById

src/service/ampdoc-impl.js:542–544  ·  view source on GitHub ↗

* Locates an element with the specified ID within the ampdoc. In the * shadow-doc mode, when multiple documents could be present, this method * localizes search only to the DOM subtree specific to this ampdoc. * * @param {string} id * @return {?Element}

(id)

Source from the content-addressed store, hash-verified

540 * @return {?Element}
541 */
542 getElementById(id) {
543 return this.getRootNode().getElementById(id);
544 }
545
546 /**
547 * Whether the node is currently contained in the DOM of the root.

Callers 15

buildFunction · 0.45
updateExperimentRowFunction · 0.45
showConfirmation_Function · 0.45
viqeoPlayerInitLoadedFunction · 0.45
getBeOpinionAsyncInitFunction · 0.45
beopinionFunction · 0.45
getPostContainerFunction · 0.45
getPageContainerFunction · 0.45
facebookFunction · 0.45
twitterFunction · 0.45
bodymovinanimationFunction · 0.45
redditFunction · 0.45

Calls 1

getRootNodeMethod · 0.95

Tested by

no test coverage detected