Having fun with IE part 5 - what item?
Some more IE-weirdness.
JavaScript:
Why is 'item' special in IE's global scope?
JavaScript:
1 | alert(window.item == window); |
Why is 'item' special in IE's global scope?
|
|
Spam @ tweakblogs |
|
|
IPv6 validation - more caveats |
Comments
Because it's Microsoft? 
What are you trying to say here.
What are you trying to say here.
Ergens gevonden binnen een discussie uit 2003.Since IE puts every object with a name or ID in the global scope, I wouldn't be surprised if it reserves item as a property of window
window.item(0)
being equivalent to the first element with a name or ID.
Yes, it's a result of MS having built DOM on top of their document.all object model. This is just something I recently found in a case where it was the cause of strange behaviour in IE.