Re: ISSUE-144 (propagation exceptions): exceptions in handlers during event propagation [DOM3 Events]

On 10/5/10, Web Applications Working Group Issue Tracker
<sysbot+tracker@w3.org> wrote:
>
> ISSUE-144 (propagation exceptions): exceptions in handlers during event
> propagation [DOM3 Events]
>
> http://www.w3.org/2008/webapps/track/issues/144
>
> Raised by: Doug Schepers
> On product: DOM3 Events
>
> Sergey Ilinsky in
> <http://lists.w3.org/Archives/Public/www-dom/2010JulSep/0191.html>:
> [[
> How do execution exceptions occurred in handlers during the event
> propagation affect the event flow?
> Should the event propagation be stopped, should it continue?
> Is this specified?
> ]]
>

Event propagation must continue as specified in DOM 2 Events, which
clearly explains that all registered EventListeners of any EventTarget
are guaranteed to be triggered by any event which is received by that
EventTarget.

Section 1.2.1. "basic event flow" goes on to explicitly state:
"Any exceptions thrown inside an EventListener will not stop
propagation of the event. It will continue processing any additional
EventListener in the described manner."

An event propagation must continue. One callback firing an error does
not get to stop that.

Garrett

Received on Wednesday, 6 October 2010 19:50:05 UTC