fakeDoc[api[0]] = function()

in src/editor/sandbox/setup.js [158:173]


            fakeDoc[api[0]] = function () {
              let val = arguments[argIndx];
              val && (val = val.toLowerCase());
              if (
                val &&
                (fullTextSearch
                  ? ((val = val.match(disallowedElementsMatcher)),
                    (val = val && val[1]))
                  : disallowedElements.includes(val))
              ) {
                return console.error(
                  `Disallowed attempting to create ${val} element!`
                );
              }
              return nativeFn.apply(document, arguments);
            };