W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2011

[DOM4]: Element.create

From: Charles Pritchard <chuck@jumis.com>
Date: Thu, 15 Sep 2011 11:07:51 -0700
Message-ID: <4E723EF7.7050303@jumis.com>
To: www-dom@w3.org
On webapps, we discussed a helper method, "create", which might fit well 
in DOM4.
http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/0707.html

Element.create('img', {src: '...'}),

This included some talk about chaining the method, something that is 
present in several
JS libraries and particularly useful in cutting down on verbosity when 
building SVG documents and other graphs.

It seems a reasonable discussion to continue here.

This functionality has been requested across groups using DOM. 
Admittedly, it is syntactic sugar.


-Charles
Received on Thursday, 15 September 2011 18:08:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT