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
Other browsers do via `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

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.

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to