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

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