Re: Removing 'caller' from WebIDL

On 9/4/11 5:47 PM, Brendan Eich wrote:
>> I should also note, that in WebKit, we allow plugins to make the HTMLObjectElement (as well as HTMLEmbedElement) callable via NPAPI, though that may be outside the scope of this issue.
>
> Is that different from other NPRuntime implementations? Cc'ing jst.

<object> and <embed> elements are callable in Gecko as well: they have a 
[[Call]] and typeof(document.createElement("embed")) === "function".

Their prototype chain does not chain up to Function.prototype, though, 
and I'm not sure whether it's possible to create that setup in pure ES 
right now.

I rather doubt that making typeof(nodelist) === "function" is 
web-compatible, though we could test that theory...

-Boris

Received on Monday, 5 September 2011 03:12:58 UTC