W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

Re: [TreatNonCallableAsNull] alternative?

From: Simon Pieters <simonp@opera.com>
Date: Mon, 12 Mar 2012 08:24:41 +0100
To: "Anne van Kesteren" <annevk@opera.com>, "Cameron McCormack" <cam@mcc.id.au>
Cc: "Marcos Caceres" <w3c@marcosc.com>, public-script-coord@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
Message-ID: <op.wa1qvfraidj3kv@simons-macbook-pro.local>
On Mon, 12 Mar 2012 01:27:19 +0100, Cameron McCormack <cam@mcc.id.au>  
wrote:

>      callback ErrorEventHandlerCallback = any (Event event, DOMString  
> source, unsigned long lineno, unsigned long column);
>      typedef [TreatNonCallableAsNull] ErrorEventHandlerCallback?  
> ErrorEventHandler;


>    [TreatNonCallableAsNull]
>    callback ErrorEventHandler = any (Event event, DOMString source,  
> unsigned long lineno, unsigned long column);

window.onerror gets invoked with a DOMString as the first argument.  
However, if an error event is fired on or bubbles up to window, there will  
only be one argument, an Event (or something that inherits from Event).

-- 
Simon Pieters
Opera Software
Received on Monday, 12 March 2012 07:25:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC