W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

define a callback for event handler attributes to use

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 20 Jun 2012 13:00:49 +1000
Message-ID: <4FE13CE1.1040706@mcc.id.au>
To: "www-dom@w3.org" <www-dom@w3.org>
I'd like to have this definition added to DOM4:

   [TreatNonCallableAsNull] callback EventHandler = void (Event event);

That would allow specs that define event handler attributes to write for 
example

   attribute EventHandler onclick;

rather than

   [TreatNonCallableAsNull] attribute Function onclick;

Thanks,

Cameron
Received on Wednesday, 20 June 2012 03:01:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT