ISSUE-26: (Bugzilla 17408) Node creation syntax


(Bugzilla 17408) Node creation syntax

Web Audio API
Raised by:
Marcus Geelnard
Opened on:
Each node has its own create* method on the AudioContext object.

A common way is to use a single method taking a string argument giving the object name and an optional parameter object for object-specific parameters.

Examples: document.createElement() and canvas.getContext().

While semantically similar, using a single create* method is probably preferable over many different create* methods (e.g less namespace pollution, clearer extensibility mechanism and more consistent with other Web interfaces).
Related Actions Items:
No related actions
Related emails:
  1. [web-audio-api] (NodeCreation): Node creation syntax (#224) (from on 2013-09-11)
  2. Re: Summary of issues (from on 2012-05-22)
  3. Summary of issues (from on 2012-05-22)
  4. Audio-ISSUE-26 (NodeCreation): Node creation syntax (from on 2012-05-15)

Related notes:

I actually think the current set of methods is better. They're in the AudioContext so namespace pollution isn't a problem. Adding new methods is a perfectly adequate extension point. canvas.getContext() is a mess and being consistent with it is not a virtue.

Robert O'Callahan, 15 May 2012, 21:23:38

Under discussion. Setting as OPEN.

Olivier Thereaux, 30 May 2012, 20:23:19


5 Jun 2012, 13:01:59

Display change log ATOM feed

Matthew Paradis <>, Raymond Toy <>, Chairs, Chris Lilley <>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <>.
$Id: 26.html,v 1.1 2019/11/12 13:32:17 carcone Exp $