[Proto-Scripty] Strange behaviour of innerHTML

2011-05-13 Thread jose maria Cano
Hi Guys, I've discovered a way to create and insert an element in a faster way, for IE the difference is huge, like a half better. Normally I’m creating the elements in this way. var text1 = new Element('div').insert('hello'); But I’ve seen that if you do that, is much faster: var text1 = new

Re: [Proto-Scripty] Strange behaviour of innerHTML

2011-05-13 Thread Walter Davis
Maybe those browsers don't expose getters and setters as if they were attributes. What you're coding in your new Element call is equivalent to this: div innerHTML=hello/div IE has lots of bugs around attributes and methods clashing. Try naming a submit button submit some time and