In Internet Explorer 10, I have the following:
var getElmById = document.getElementById;
function . . . (ctlID) {
var ctrl = getElmById(ctlID);
. . .
}
It works fine, but suddenly gives me
SCRIPT65535: Invalid calling object
I determined that if I check the box, Tools > Compatibility View Settings > [_] Display intranet sites in Compatibility Viewthe aliased function will work fine, but if I clear this field, I will get an error.
What is the reason? What is the specific problem that IE is responding to? Do aliasing functions have such functions? Have there been some changes to the way the "document" object behaves?
source
share