Why is window not identical to window.self in Internet Explorer?
        Posted  
        
            by Jim Puls
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jim Puls
        
        
        
        Published on 2010-04-27T21:13:05Z
        Indexed on 
            2010/04/27
            21:13 UTC
        
        
        Read the original article
        Hit count: 346
        
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.
© Stack Overflow or respective owner