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

Function hasAttribute

test/unit/test-fixed-layer.js:301–308  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

299 return false;
300 },
301 hasAttribute(name) {
302 for (let i = 0; i < this.attributes.length; i++) {
303 if (this.attributes[i].name === name) {
304 return true;
305 }
306 }
307 return false;
308 },
309 getAttribute(name) {
310 for (let i = 0; i < this.attributes.length; i++) {
311 if (this.attributes[i].name === name) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected