In Javascript, by what mechanism does setting an Image src property trigger an image load?

The mechanism for Image. Src = ... to trigger a load is currently unspecified, but WebIDL will change that when complete. ( 4.4.5 Attributes is the section that talks about this right now; it's probably what will be in the final recommendation, but I try not to predict the future in these things -- too easy to predict in haste and regret in leisure.) Some browsers have implemented this using essentially the getters and setters you note (just with "native" functions implemented in the browser to back them, akin to how, say document.

AppendChild is a JS function with a "native" browser-provided implementation behind it). Others have an entirely different approach for DOM getters and setters than for user-definable getters and setters. (This is why, you can't use Object.

GetOwnPropertyDescriptor in Firefox 4 betas to examine DOM getters and setters. It's something we will fix eventually, but we've run out of time to do it for Firefox 4, I think.).

The W3C produces a specification that describes the behavior that browsers (user agents) should follow for HTML, JavaScript, and CSS. Most browser vendors implement the JavaScript language so that it follows this specification.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions