This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10977 - Properties should be on prototypes, not on objects, in the ECMAScript binding
Summary: Properties should be on prototypes, not on objects, in the ECMAScript binding
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2010-10-05 02:12 UTC by Boris Zbarsky
Modified: 2010-10-06 22:41 UTC (History)
3 users (show)

See Also:


Description Boris Zbarsky 2010-10-05 02:12:22 UTC
DOM properties should be on prototypes and defined in terms of getter/setter pairs; that would allow page scripts to override property implementations as needed.  This should be doable with an ES5 formulation of the ECMAScript binding.
Comment 1 Anne 2010-10-05 10:02:18 UTC
The event handler IDL attributes are special though, right?
Comment 2 Boris Zbarsky 2010-10-05 15:06:33 UTC
Why?  (I mean... they could be; and I think in Gecko right now they are, but do they have to be?)
Comment 3 Anne 2010-10-05 15:49:09 UTC
I do not know whether they have to be. If they can be consistent that would be great.
Comment 4 Cameron McCormack 2010-10-06 22:21:22 UTC
Done for attributes on interfaces:

Still to do exception members.
Comment 5 Cameron McCormack 2010-10-06 22:41:19 UTC
And done for exceptions now too: