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>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295

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.3.1 : Wednesday, 8 May 2013 19:30:03 UTC