W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2012

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 01 Feb 2012 01:02:34 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RsOao-0003x3-32@jessica.w3.org>

--- Comment #3 from Cameron McCormack <cam@mcc.id.au> 2012-02-01 01:02:33 UTC ---
(In reply to comment #2)
> Wouldn't this mean you can't assign a zero-argument method as a callback?

No, zero-argument Functions can be passed in just like they could before with
[Callback] interface.

> Surely the return value should be boolean, not void. What about things like
> onbeforeunload, where the value can be as string, too?

Either broaden the return type, or use separate callback definitions for the
event handler IDL attributes that have different return types.

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 Wednesday, 1 February 2012 01:02:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:26 UTC