W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Audio-ISSUE-26 (NodeCreation): Node creation syntax

From: Audio Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Tue, 15 May 2012 13:07:22 +0000
Message-Id: <E1SUHTG-0007eS-58@tibor.w3.org>
To: public-audio@w3.org
Audio-ISSUE-26 (NodeCreation): Node creation syntax

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

Raised by: Marcus Geelnard
On product: 

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).
Received on Tuesday, 15 May 2012 13:07:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 15 May 2012 13:07:32 GMT