[whatwg] HTMLElement.onload

Ian Hickson ian at hixie.ch
Mon Oct 26 22:27:13 PDT 2009


On Sun, 25 Oct 2009, Markus Ernst wrote:
> 
> The spec says in 3.2.3: "The following event handler content attributes 
> may be specified on any HTML element" - with my quite trivial 
> understanding, I would actually expect something to happen if I do this. 
> The note "The attributes marked with an asterisk have a different 
> meaning when specified on body elements as those elements expose event 
> handlers of the Window object with the same names" does not correct this 
> expectation, but rather implies, that onload on any element has an 
> effect, as it is supposed to have another effect than when specified in 
> the body element.

I've tried to clarify this by adding a note after the one you mention.


> Also, in this events table, the description of the load event is very 
> rudimentary: "Fired when a resource has finished loading". I suggest 
> changing this to something like: "Fired at the Window object when the 
> document has finished loading, or at an element containing a resource, 
> when the resource has finished loading".

Ok.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list