Thanx Diego. Those are some good unit test ideas and will effect the outcome of the method definition. I did a little searching and a small test on IE. It appears IE doesn't let you transfer an element from one document to another. Other browsers do via `document.importNode`
http://www.w3.org/TR/DOM-Level-2-Core/core.html#Core-Document-importNode http://developer.mozilla.org/en/DOM/document.importNode Mozilla and Opera 9 (possibly others) won't complain if you don't use importNode though so Element#swapWith works fine with iframes. Since this cannot be done cross browser the edge case is no longer valid. I did a quick test with TR and TD elements on static and dynamic (created via innerHTML) and element#swapWith seemed to work fine. The LH ticket has been marked as "not for core" so I will tinker with it on my Prototype fork at some point. - JDD --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---