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, 25 May 2011 04:41:41 +0000
To: public-script-coord@w3.org
Message-Id: <E1QP5uf-0000dH-Ps@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295

--- Comment #4 from Cameron McCormack <cam@mcc.id.au> 2011-05-25 04:41:40 UTC ---
I've added wording to the spec requiring that each ECMAScript global
environment gets its own copies of interface objects, interface prototype
objects, etc.  So now `node instanceof otherWindow.Object` will be false.

http://dev.w3.org/2006/webapi/WebIDL/#es-environment

The "Host object [[HasInstance]]" section is still in the spec, which does
currently require `node instanceof otherWindow.Node` to be true, but that will
disappear once multiple inheritance has been removed (the default
[[HasInstance]] will work fine then).

(Also added wording dotted around the spec to define which global environment
each DOM object is associated with, and which global environment exceptions get
associated with when they are created and thrown.)

-- 
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, 25 May 2011 04:41:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC