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

Method constructor

test/unit/core/dom/test-propagate-attributes.js:4–7  ·  view source on GitHub ↗
(tagName)

Source from the content-addressed store, hash-verified

2
3class FakeElement {
4 constructor(tagName) {
5 this.tagName = tagName.toUpperCase();
6 this.attributes = new Map();
7 }
8
9 setAttribute(key, value) {
10 this.attributes.set(key, value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected