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

Function el

test/unit/core/context/test-node-subscribers.js:55–64  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

53 }
54
55 function el(id) {
56 if (id == 'T') {
57 return tree;
58 }
59 const found = tree.querySelector(`#${id}`);
60 if (!found) {
61 throw new Error(`element not found ${id}`);
62 }
63 return found;
64 }
65
66 /**
67 * @param {Object} obj

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected