Re: Should events be preferably sent to the Window or the nearest object?

On March 20, 2014 at 2:30:55 PM, Marcos Caceres (w3c@marcosc.com) wrote:
>  
>  
> On March 20, 2014 at 12:58:44 PM, Tab Atkins Jr. (jackalmage@gmail.com) wrote:
> > > Agreed. The exact target isn't very important here, and so being
> > consistent with legacy event firing for the same system is probably
> > a good idea.
>  
> Agree. Let's go with consistency, even though it feels a bit weird.

Ian, would it be possible to have some kind of hook in HTML to give us this behaviour for free? 

That is, given an event handler IDL attribute on some interface, we get the HTML attribute equivalent on body element (all wired up and ready to be used). That would be useful in that we wouldn't need to define the HTML onorientationchange attribute in the Orientation Lock spec (and all future specs). This could really help with consistency.  

Received on Monday, 7 April 2014 22:13:54 UTC