[Bug 15358] Use the new callback syntax for Function and event handler attributes.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15358

Anne <annevk@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cam@mcc.id.au, dom@w3.org

--- Comment #1 from Anne <annevk@opera.com> 2011-12-29 13:11:21 UTC ---
In particular it should be something like this:

  callback EventHandlerListener = void (Event evt);
  typedef [TreatNonCallableAsNull] EventHandlerListener? EventHandler;

Event handler IDL attributes can then be defined as

  attribute EventHandler onclick;

The event handler attributes that take a different argument (onerror, others?)
it probably makes sense to define a distinct callback so it is clear they are
special from the IDL as well.

Cameron suggested EventListener elsewhere but that would be incompatible with
the DOM (where it is a callback interface).

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 29 December 2011 13:11:27 UTC