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

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 ≝

Received on Monday, 27 June 2011 22:18:25 UTC