- From: <bugzilla@jessica.w3.org>
- Date: Sun, 13 Nov 2011 17:23:44 +0000
- To: public-script-coord@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14813 Summary: Prototype of interface objects is Object.prototype in implementations, not Function.prototype Product: WebAppsWG Version: unspecified Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: WebIDL AssignedTo: cam@mcc.id.au ReportedBy: ayg@aryeh.name QAContact: member-webapi-cvs@w3.org CC: mike@w3.org, public-script-coord@w3.org 4.5.1: "Interface objects are always function objects." 4: "If an object is defined to be a function object, then it has characteristics as follows: * Its [[Prototype]] internal property is the Function prototype object." data:text/html,<!doctype html> <script> alert(Object.prototype.isPrototypeOf(Node)); alert(Function.prototype.isPrototypeOf(Node)); </script> alerts "true", then "false" in all browsers tested: IE9, Firefox 9.0a2, Chrome 16 dev, Opera 12.00. (I wasn't able to double-check in IE9 right now, but I believe its behavior matches too.) WebIDL needs to define that the prototype of interface objects is Object.prototype, not Function.prototype, unless I'm missing something. -- 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 Sunday, 13 November 2011 17:23:50 UTC