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 13004 - Inheritance for dictionaries
Summary: Inheritance for dictionaries
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: 2011-06-20 23:14 UTC by Anne
Modified: 2011-06-21 02:25 UTC (History)
3 users (show)

See Also:


Description Anne 2011-06-20 23:14:17 UTC
We plan to change initEvent() to also accept a single argument. This would be a dictionary. However, each event interface comes with its own properties so each would require its own dictionary. To avoid having to overload initEvent() for each new event interface and to avoid respecifying how type/cancelable/bubbles and other properties work each time it would be nice if inheritance was supported.

That way you could have a base InitEvent dictionary and CustomEvent could have a InitCustomEvent inherited dictionary specifying just detail. Etc.