Re: define a callback for event handler attributes to use

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 UTC