MCPcopy Index your code
hub / github.com/ampproject/amphtml / getInnerHtmlProto

Function getInnerHtmlProto

test/unit/polyfills/test-custom-elements.js:10–19  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

8 let innerHTMLProto;
9
10 function getInnerHtmlProto(win) {
11 let innerHTMLProto = win.Element.prototype;
12 if (!Object.getOwnPropertyDescriptor(innerHTMLProto, 'innerHTML')) {
13 innerHTMLProto = win.HTMLElement.prototype;
14 if (!Object.getOwnPropertyDescriptor(innerHTMLProto, 'innerHTML')) {
15 return null;
16 }
17 }
18 return innerHTMLProto;
19 }
20
21 before(function () {
22 if (!getInnerHtmlProto(window)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected