My be such wrapper around "new Element()" will be useful, but Ask your self when you insert nodes where do you insert them, or how (with appendChild, insertBefore, insertAfter, ....), an when inserting item do you just create it, or add events or do other things except that ? mainly I do some thing like that:
var el = new Element('elem', attributes); el.style.border = border; // and other css rules if needed el.observe('click', action); $('some_element').injectBefore(el); p.s. something like that will be usefull: http://ajaxian.com/archives/mootools-11-released --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---