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

Re: [TreatNonCallableAsNull] alternative?

From: Marcos Caceres <w3c@marcosc.com>
Date: Tue, 6 Mar 2012 11:00:32 +0000
To: Cameron McCormack <cam@mcc.id.au>
Cc: Anne van Kesteren <annevk@opera.com>, public-script-coord@w3.org, Boris Zbarsky <bzbarsky@mit.edu>
Message-ID: <9B7B59C410FE451D84B5BF395AF62B14@marcosc.com>

On Tuesday, 6 March 2012 at 04:24, Cameron McCormack wrote:

> Marcos Caceres:
> > That would be nice … [TreatNonCallableAsNull]'s behaviour is actually
> > quite nice and forgiving (which is why I wanted to use it in the
> > first place).
> Which event listener attributes do we actually *need* it for currently?


(yes, I know it's not part of the Web Platform… a man's gotta pay his bills somehow :( )   
> Is it a set that might creep to become bigger? Consistency across all  
> event listener attributes seems nice to me, but I admit it is trading  
> off against hiding authoring errors.

I can see what you mean. I guess my perspective is that I got used to the [TreatNonCallableAsNull] behaviour over many years... so I kinda see it's behaviour as a feature, not a bug.     
> Regardless, I don't think we want to allow [TreatNonCallableAsNull]  
> behaviour elsewhere. It's not consistent with how type conversion is  
> done elsewhere.

I know; but these "event handler IDL attributes" are kind of a special case with a long legacy.    
Received on Tuesday, 6 March 2012 11:00:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:05 UTC