Re: ISSUE-42 (simpler custom events): Should we simplify custom events? [DOM3 Events]

Jonas Sicking:
> I think this was a feature request to make it possible for the code  
> firing the custom event to specify whether the event should be  
> retargetted or stopped. The XBL spec can't specify all possible custom  
> events of course, so it does make sense, however I would ask what the  
> use case is.

With five minutes thought, I can’t come up with a good use case for
custom events that are stopped.  Definitely you want to be able to
dispatch events that are retargetted.  If a binding author doesn’t want
an event to leak out to the parent scope, then they can always use some
method of communication other than DOM events (since a custom event that
is stopped would by definition be used just for communication within a
single shadow scope).

So perhaps XBL2 should say that events that inherit from MutationEvent
are stopped and all other events are retargetted.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Thursday, 24 July 2008 00:22:58 UTC