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

Re: define a callback for event handler attributes to use

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 20 Jun 2012 17:06:31 +1000
Message-ID: <4FE17677.1070701@mcc.id.au>
To: "www-dom@w3.org" <www-dom@w3.org>
Cameron McCormack:
> 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;

Sigh, forgot about nullability!

   attribute EventHandler? onclick;
Received on Wednesday, 20 June 2012 07:07:04 GMT

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