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

Function removeAttribute

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

Source from the content-addressed store, hash-verified

327 this.attributes.push(new FakeAttr(name, value));
328 },
329 removeAttribute(name) {
330 for (let i = 0; i < this.attributes.length; i++) {
331 if (this.attributes[i].name === name) {
332 this.attributes.splice(i, 1);
333 return;
334 }
335 }
336 },
337 attributes: new FakeAttributes(),
338 appendChild: (child) => {
339 child.parentElement = elem;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected