ISSUE-26: (Bugzilla 17408) Node creation syntax

NodeCreation

(Bugzilla 17408) Node creation syntax

State:
CLOSED
Product:
Web Audio API
Raised by:
Marcus Geelnard
Opened on:
2012-05-15
Description:
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 notifications@github.com on 2013-09-11)
  2. Re: Summary of issues (from crogers@google.com on 2012-05-22)
  3. Summary of issues (from mage@opera.com on 2012-05-22)
  4. Audio-ISSUE-26 (NodeCreation): Node creation syntax (from sysbot+tracker@w3.org 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

[MikeSmith]: https://www.w3.org/Bugs/Public/show_bug.cgi?id=17408

5 Jun 2012, 13:01:59

Display change log ATOM feed


Matthew Paradis <matthew.paradis@bbc.co.uk>, Raymond Toy <rtoy@google.com>, Chairs, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 26.html,v 1.1 2019/11/12 13:32:17 carcone Exp $