W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 12295] Make `node instanceof otherWindow.Node` evaluate to false

From: <bugzilla@jessica.w3.org>
Date: Wed, 27 Apr 2011 22:38:49 +0000
To: public-script-coord@w3.org
Message-Id: <E1QFDNh-0008Jc-Q5@jessica.w3.org>

Allen Wirfs-Brock <allen@wirfs-brock.com> changed:

           What    |Removed                     |Added
                 CC|                            |allen@wirfs-brock.com

--- Comment #3 from Allen Wirfs-Brock <allen@wirfs-brock.com> 2011-04-27 22:38:49 UTC ---
(In reply to comment #2)

expanding upon markm's comment.  instanceof is not a reliable way to perform
"is-a" testing in JavaScript. Even in situations where there is only a single
frame or global context.  If there is real a  need for such tests in the
context of DOM/Web APIs then the WebIDL ECMAScript binding might want to
consider defining some other way to perform them.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 27 April 2011 22:38:51 UTC

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