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

[Bug 14877] Define [[Class]] of interface prototype objects

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 Nov 2011 19:52:52 +0000
To: public-script-coord@w3.org
Message-Id: <E1RRUUW-0005oz-QM@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14877

--- Comment #3 from Travis Leithead [MSFT] <travil@microsoft.com> 2011-11-18 19:52:51 UTC ---
+1 for FooPrototype. This design was chosen for IE9 because it helps the web
developer easily determine a random DOM instance object's prototype via:
alert(Object.getPrototypeOf(instance));

...and helps web developers learn the prototype hierarchy of the DOM.

Note that it's sometimes (but not always) possible to get the related name of a
prototype instance through:
instance.constructor.toString();

because some instances may be associated with an interface marked as
[NoInterfaceObject] (which won't have a 'constructor' property.

-- 
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 Friday, 18 November 2011 19:52:54 UTC

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