How can I make return "Function" for this request:
document.createElement("MY_FAKE_TAG").canThisRun
Now its return: undefined
You could extend the HTMLUnknownElement
's prototype, but I really wonder if it's a good idea...
HTMLUnknownElement.prototype.canThisRun = function(){console.log('hi')};
document.createElement('foo').canThisRun();