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 17324 - Empty interfaces serve no purpose
Summary: Empty interfaces serve no purpose
Status: CLOSED FIXED
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: This bug has no owner yet - up for the taking
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on: 21511
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-05 11:16 UTC by Philip Jägenstedt
Modified: 2013-05-14 10:24 UTC (History)
3 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2012-06-05 11:16:37 UTC
Audio-ISSUE-21 (EmptyInterfaces): Empty interfaces serve no purpose [Web Audio API]

http://www.w3.org/2011/audio/track/issues/21

Raised by: Philip Jägenstedt
On product: Web Audio API

There are currently a number of empty interfaces:

    interface AudioSourceNode : AudioNode {

    }

  interface AudioGain : AudioParam {

  };

    interface MediaElementAudioSourceNode : AudioSourceNode {

    }

    interface AudioChannelSplitter : AudioNode {

    };

    interface WaveTable {

    }

(Copied verbatim, note the inconsistent indentation.)

These interfaces will be visible in the global namespace (the Window object) but serve no apparent purpose. In HTML, elements that do not have any special DOM interface are simply HTMLElement, a model we suggest to follow.
Comment 1 Olivier Thereaux 2012-06-07 14:36:55 UTC
Comment from Philip in http://lists.w3.org/Archives/Public/public-audio/2012AprJun/0210.html
«
An example of this is AudioProcessingEvent.node, which is not readonly  
while the other members are, for no apparent reason.
»
Comment 2 Chris Rogers 2013-04-09 00:47:55 UTC
AudioSourceNode and AudioGain  have been removed since there is no concrete object for these types.

I believe it's important to keep the others mentioned since they are concrete and very specific node types where specific instances can be created.

Fixed:
https://dvcs.w3.org/hg/audio/rev/827140b23ed9
Comment 3 Olivier Thereaux 2013-04-25 15:57:10 UTC
(Should be marked as resolved)
Comment 4 Olivier Thereaux 2013-05-14 10:24:08 UTC
No objection since resolution announced. Closing.