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: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 01 Jan 2013 18:00:07 -0500
Message-ID: <50E36A77.10201@mit.edu>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
On 1/1/13 5:56 PM, Allen Wirfs-Brock wrote:
> I'd argue that this is an ECMAScript issue rather than a Web API issue.

Sure.  That's why we're talking about it on this mailing list, which is 
in large part about coordinating with the ES working group, no?

> It isn't clear that fixing it for Web APIs while leaving it broken for everything else actually benefits JavaScript programmers.  Rather than trying to fix it via WebIDL bindings perhaps it would be better to lobby TC39 to fix (or replace it) for everything.

It's come up before, iirc.  No progress was made...

> The default  @@hasInstance behavior is the traditional ES instanceof check.  However, all it takes to change that is to define an alternative @hasInstance method on a constructor.


Received on Tuesday, 1 January 2013 23:00:36 UTC

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