Re: Solving the "how do I tell whether I have an HTML element?" (or image element, or whatever) problem

On 18/01/13 9:09 AM, Travis Leithead wrote:
> I think this sounds fine. Most web developers don't expect the
> current spec'd behavior, even though to me it seems more natural.
>
> IE has the current behavior and I expect we would migrate to the new
> behavior at some point once it was defined and agreed upon.

At one point a long time ago, Web IDL did require [[HasInstance]] to be 
overridden to return true even for objects from different windows.  If 
proxies now support trapping that, I'll just add it back.

(And hey, it was still there just commented out!  I must have known it'd 
return.)

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.612;r2=1.613;f=h

I guess this will change to the @hasInstance that Allen mentions, once 
ES6 stabilises and I actually understand what "@hasInstance" means. :)

Received on Thursday, 24 January 2013 08:16:08 UTC