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

Function getAttribute

test/unit/test-custom-element-registry.js:259–263  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

257
258 elem1 = {
259 getAttribute(name) {
260 if (name == 'custom-element') {
261 return 'amp-test1';
262 }
263 },
264 hasAttribute(name) {
265 return name == 'custom-element' || name == 'src';
266 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected