Exactly right, maybe some event handlers are not removed but there must be some event can not be saved during the outerHTML changing,"the reference to the old element is destroyed, and a reference to new element is created when you change outerHTML. " something like that, but the old reference is not destroyed unless this function end, and you must get the new reference by the getElement**** method, that is why in my code I get it again and put it into the array, No matter event loss or save, this method should not be used , I suppose through changing outerHTML, it should make out a new element which toally mess up the DOM structure, no library will accept it. Hope IE8 will let me to modify name attribute, haha.
On Jun 18, 6:55 pm, DK <[EMAIL PROTECTED]> wrote: > AFAIK outerHTML is not WC3 standards compliant - it is IE extension > > I'm not sure it will remove all the event handlers, but it could (and > even should) - when You change outerHTML you can potentially even > change > the element's name - so how would event handler work on such a new > element. So I suppose, the reference to the old element is destroyed, > and a reference to new element is created when you change outerHTML. > Even if in this process you change only the 'name' attribute of the > element. > > On Jun 18, 12:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Tks, I quite do not understand outerHTML, oh this would remove all the > > event handlers, in opera only change name attribute won't remove the > > event handlers? I think so. IE, misbahaving make me confused on you, > > why does IE implement the DOM basic method like this, any reasonable > > reason? Thanks ;)- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---