W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

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

From: Brendan Eich <brendan@secure.meer.net>
Date: Tue, 01 Jan 2013 11:29:28 -0800
Message-ID: <50E33918.2040806@secure.meer.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: public-script-coord@w3.org
Boris Zbarsky wrote:
> On 1/1/13 2:08 AM, Brendan Eich wrote:
>> Private reply:

LOL, no worries.

>> Boris Zbarsky wrote:
>>> 1)  Hack instanceof as Gecko has in the past.  This is actually a bit
>>> of a pain to implement even in Gecko, without changes to SpiderMonkey,
>>> because function objects can't have the magic behavior the RHS needs
>>> above in SpiderMonkey at the moment.
>> What's missing? I still see Class::hasInstance in jsclass.h.
> Functions can't have a custom JSClass in SpiderMonkey.  They always 
> have js::FunctionClass.

IIRC our DOM interface objects used to have custom JSClasses -- no more? 
Required by WebIDL or rather our implementation choice? I'm interested 
in rationales.

Oh, and HNY!

Received on Wednesday, 2 January 2013 18:34:23 UTC

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