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

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

From: Glenn Maynard <glenn@zewt.org>
Date: Tue, 2 Aug 2011 14:26:52 -0400
Message-ID: <CABirCh_2dPktT0QbwbeXEdsK4rexE=zRMFyM_c1J8HaqJwW+8A@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Aryeh Gregor <ayg@aryeh.name>, Maciej Stachowiak <mjs@apple.com>, WebApps WG <public-webapps@w3.org>
On Tue, Aug 2, 2011 at 2:18 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> MooTools is basically identical to Prototype, except that you can
> additionally set listeners on the element during creation by using a
> magical "events" property in the attribute bag, which takes an object
> of event names and functions.  This would be nice to look into adding.

Is this much better than just saying eg. Element.create("a", {href: "
http://link <http://google.com/>", onclick: function(e) { ... } }, "link"}?

Glenn Maynard
Received on Tuesday, 2 August 2011 18:27:29 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:34 UTC