Why is window not identical to window.self in Internet Explorer?
- by Jim Puls
There's a convoluted backstory involving how I came across this, but why is the self property not exactly equal to the window itself?
In Safari and Firefox and friends, the results are as I'd expect:
> window == window.self
true
> window === window.self
true
The same isn't true in Internet Explorer, though:
>> window == window.self
true
>> window === window.self
false
Can anybody account for the inconsistency? To exactly what is the self property of the window object pointing? It casts to something with equality, which is even more vexing.