W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2012

Re: Throwing an error in an event listener

From: Anne van Kesteren <annevk@annevk.nl>
Date: Sat, 27 Oct 2012 17:07:34 +0200
Message-ID: <CADnb78ihkC-ubZDRLx+=CWpNDZRVFdEmYy6WOyYGz0Fe6o3egw@mail.gmail.com>
To: David Bruant <bruant.d@gmail.com>
Cc: www-dom@w3.org
On Sat, Oct 27, 2012 at 4:13 PM, David Bruant <bruant.d@gmail.com>
> But nothing is said about what happens if during this call an error is
> thrown. In browsers I have tested (Firefox 18, Opera 12, latest Chrome), the
> error is absorbed and the next listener is called (so the test succeeds).
> I think the invoke algorithm should make a mention of that somewhere.

window.onerror should still get it. Event listeners are run as
"outermost scripts" or some such. Not sure if we have that concept
clearly defined yet. I think this was in IDL's court, but I'm not
entirely sure anymore.


-- 
http://annevankesteren.nl/
Received on Saturday, 27 October 2012 15:08:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 27 October 2012 15:08:03 GMT