Re: Removing 'caller' from WebIDL

On 26/08/11 6:21 AM, Jonas Sicking wrote:
> The 'caller' annotation in WebIDL makes an object callable. This is
> needed for legacy support at least for the document.all (non-firefox
> browsers also support it on other objects, but it's not been
> established that this is actually needed for webcompat).
>
> My understanding is that this convention is not implementable in Javascript.
>
> I think we should remove this from WebIDL as to prevent the pattern
> from spreading any further. Apparently the DAP contacts API has
> started using it, as has the microdata DOM API. So it appears that
> putting it in WebIDL has made it easier for the pattern to spread.
>
> Prose can always be added to the document.all object (and other
> objects too if needed) as to make them callable.

I'd like to wait to see what the results of the WebKit experiments are, 
and whether that indicates whether the non-HTMLAllCollection callers 
will be removed from the HTML spec.

For the moment, I will give Anne's suggestion a try -- I'll leave it in 
the spec, and rename it to legacycaller.

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.html.diff?r1=1.394;r2=1.395;f=h

Jonas, can you indicate whether this resolution is satisfactory?

Thanks,

Cameron

Received on Friday, 9 September 2011 08:50:47 UTC