Hello New Element('div', {'class': 'test'});
throw an error with Mozilla 1.7.12 : Error : cache has no properties Source File : prototype.js Line : 1565 I did something like this to make it work : (function() { var element = this.Element; this.Element = function(tagName, attributes) { attributes = attributes || { }; tagName = tagName.toLowerCase(); var el=document.createElement(tagName); Object.keys(attributes).each(function (item) { el.writeAttribute(item, attributes[item]); }); return el; }; Object.extend(this.Element, element || { }); }).call(window); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---