W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 7 Apr 2014 22:37:46 +0000 (UTC)
To: Marcos Caceres <w3c@marcosc.com>
cc: Mounir Lamouri <mounir@lamouri.fr>, public-webapps <public-webapps@w3.org>
Message-ID: <alpine.DEB.2.00.1404072236590.21310@ps20323.dreamhostps.com>
On Mon, 7 Apr 2014, Marcos Caceres wrote:
> 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. 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.  

I'm very happy to add any such attributes to the HTML spec, just file a 
bug once you're confident that it won't change.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 7 April 2014 22:38:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:23 UTC