> Радослав (Radoslav?) is right, we already have this:
>
> my_div = new Element("div");
> my_div.insert(new Element("h1").update("Hello there!"));
> my_div.insert(new Element("p").update("Hello, here is some 
> text").setStyle({fontSize: "25px" }));

Wow!  Looks like I'm just barely too late to suggest this then!  This
is awesome!

Let me ask you a question:  How often do you create an element without
appending it to something?  The answer to that question for me is
0.01% of the time.  What do you think if we added a shortcut method to
an instantiated method capable of building and appending a new element
to it in one swoop?

my_div = new Element("div");
my_div.build("h1").update"Hello there!");
my_div.build("p").update("Hello, here is some
text").setStyle({fontSize: "25px"});



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to