Jean-Yves Bitterlich wrote:
* DOM3/Event/EventTarget
Specification: http://www.w3.org/TR/2006/WD-DOM-Level-3-Events-20060413/
Method: EventTarget.dispatchEvent(Event evt)
It is unclear how to notify an application about incorrect event target, when 
correct event is being dispatched to incorrect eventTarget by 
EventTarget.dispatchEvent(Event evt).
Declared exceptions in the "Throws" part aren't suitable for this goal.
EventException.DISPATCH_REQUEST_ERR may be used for synchronization of 
dispatching some correct event to different nodes in different threads.


How can one dispatch an event to "incorrect event target"? Either the object is an event target (in which case you can dispatch the event) or it is not event target.

Do you mean that event targets should be able to restrict the types of events which can be dispatched to them? If yes, what would be the use case?

-Olli

Reply via email to