W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: Element.create(): a proposal for more convenient element creation

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Mon, 1 Aug 2011 18:45:46 -0700
Message-ID: <CABNRm624PbgDOg6qnk4gXsQY4U8cvEEuf_66nwQBgCD0gEUNJw@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Cc: WebApps WG <public-webapps@w3.org>
On Mon, Aug 1, 2011 at 6:33 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>
> In an IRC discussion with Ian Hickson and Tab Atkins, we can up with the
> following idea for convenient element creation:
>
> Element.create(tagName, attributeMap, children…)
>

Can we alternatively extend document.createElement?  Or was this
intentionally avoided to associate new elements with documents?

- Ryosuke
Received on Tuesday, 2 August 2011 01:46:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:46 GMT