W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

Re: whether [Callback=FunctionOnly] should be the default

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 28 Jun 2011 10:17:57 +1200
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: public-script-coord@w3.org
Message-ID: <20110627221757.GD3167@wok.mcc.id.au>
Anne van Kesteren:
> > Is the only reason for FunctionOnly event handlers?

Boris Zbarsky:
> Event handlers can't be FunctionOnly, as Cameron said.

I assumed Anne meant event handler attributes rather than event
handlers.  It’s clear event handlers added per addEventListener must
handle objects with handleEvent properties; for event handler
attributes, less so.

> The only thing that the web currently has that's FunctionOnly is the
> function overload of setTimeout/setInterval; in that situation there
> is no corresponding interface at all, historically, but if we want
> to specify it in idl we need an interface, sorta.

Yeah, I guess there was never (previously) any interface that gave an
operation name to use as the property to look up.

Cameron McCormack ≝ http://mcc.id.au/
Received on Monday, 27 June 2011 22:18:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:03 UTC