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

Function innerHTML

test/unit/test-fixed-layer.js:363–374  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

361 return parseFloat(elem.computedStyle.top);
362 },
363 set innerHTML(html) {
364 if (html === '') {
365 this.firstElementChild = null;
366 return;
367 }
368 // Updating the placeholder means we have to update the tests.
369 expect(html.trim()).to.equal(
370 '<i-amphtml-fpa style="display: none"></i-amphtml-fpa>'
371 );
372 this.firstElementChild = createElement('i-amphtml-fpa');
373 toggle(this.firstElementChild, false);
374 },
375 getRootNode() {
376 return documentApi;
377 },

Callers

nothing calls this directly

Calls 3

toggleFunction · 0.90
expectFunction · 0.85
createElementFunction · 0.70

Tested by

no test coverage detected