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: Travis Leithead <travis.leithead@microsoft.com>
Date: Thu, 17 Jan 2013 22:09:32 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss <es-discuss@mozilla.org>
Message-ID: <9768D477C67135458BF978A45BCF9B3853B7DB3F@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com>
> From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU]
> ES6 has a new trap that allows the RHS of instanceof to return whatever
> value it wants, basically.  I'm proposing that WebIDL define this trap
> for WebIDL interface objects to return whether the LHS implements the
> given interface.

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.
Received on Thursday, 17 January 2013 22:11:04 UTC

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