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

Method getRootNode

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

* Returns the root node for this ampdoc. It will either be a `Document` for * the single-doc runtime mode, or a `ShadowRoot` for shadow-doc mode. This * node can be used, among other things, to add ampdoc-wide event listeners. * * @return {!Document|!ShadowRoot}

()

Source from the content-addressed store, hash-verified

464 * @return {!Document|!ShadowRoot}
465 */
466 getRootNode() {
467 return /** @type {?} */ (devAssert(null, 'not implemented'));
468 }
469
470 /**
471 * Returns the head node. It's either an element or a shadow root.

Callers 15

getElementByIdMethod · 0.95
containsMethod · 0.95
isEnabledMethod · 0.45
installStylesForDocFunction · 0.45
maybeReportErrorToViewerFunction · 0.45
getRootElement_Function · 0.45
rootNodeForFunction · 0.45
getMethod · 0.45
constructorMethod · 0.45

Calls 1

devAssertFunction · 0.90

Tested by

no test coverage detected