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

Function createWithAttr

test/unit/test-custom-element.js:1999–2003  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

1997 });
1998
1999 function createWithAttr(attr) {
2000 const child = doc.createElement('div');
2001 child.setAttribute(attr, '');
2002 return child;
2003 }
2004
2005 it('getPlaceholder should return nothing', () => {
2006 expect(element.getPlaceholder()).to.be.null;

Callers 1

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected