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:
- [web-audio-api] (NodeCreation): Node creation syntax (#224) (from notifications@github.com on 2013-09-11)
- Re: Summary of issues (from crogers@google.com on 2012-05-22)
- Summary of issues (from mage@opera.com on 2012-05-22)
- 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:38Under 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:59Display change log