Should / Can an EventHandler throw a stack overflow exception?


I found that Chrome, Safari and Firefox report stack overflow exception
thrown from an EventHandler differently.
The spec[1] says that:

Exceptions thrown inside event listeners must not stop the propagation
of the event or affect the propagation path. The exception itself must
not propagate outside the scope of the event handler.

But it is unclear to me whether a stack overflow exception is counted
as an exception thrown inside an event listener.
I used the attached HTML (you need an HTTP server and /hello.txt to use it)
to investigate browser behaviors.

Chrome 35: Throws an exception
Safari 7.0.4, Firefox 30: Doesn't throw an exception

Can anyone tell me which is correct?



Received on Monday, 30 June 2014 08:30:16 UTC