The box below should indicate the object is an Image object and should also retain all of the properties assigned to it in SafariTest. In Safari, however (but NOT recent WebKit CVS), the object is reassigned as "Window" for some reason when you reference the object's `this` keyword:
I have been told by several people that this is NOT a bug, but rather a difference in "convention". I still disagree though -- their points were:
- Some browsers do not load new images into memory simply by giving an Image object a `src` attribute;
I do not know of any browser that acts in this manner, nor has anyone been able to provide an example of one.
- Assignment of the `this` keyword to refer to the original object is only a "convention" and not a "rule";
Furthermore, WebKit does not produce this error, which leads me to the same conclusion: this is a bug unique to Safari.
Acts as expected with:
Unexpected results with:
- IE 6.0+ (Windows 98 and higher)
- Firefox 1.0+ (Windows 98 and higher)
- Opera 9 (tested on Windows XP only)
- WebKit (CVS from February 26, 2007 on OS X.4)
- Safari (all releases on OS X.4)