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

Function stubLegacyElements

src/service/extensions-impl.js:639–643  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

637 * @param {!Window} win
638 */
639export function stubLegacyElements(win) {
640 LEGACY_ELEMENTS.forEach((name) => {
641 stubElementIfNotKnown(win, name);
642 });
643}
644
645/**
646 * Copy builtins to a child window.

Callers 2

adoptSharedFunction · 0.90
preinstallEmbedMethod · 0.85

Calls 2

stubElementIfNotKnownFunction · 0.90
forEachMethod · 0.45

Tested by

no test coverage detected