b.a = a;
  a.b = b;

this just caused infinite recursion in my brain :P


Perhaps I over simplified :) My use case is a bit more complicated than this but essentially, this is what it boils down to when I remove all the extra stuff. I *think* the same thing happens if you pass a DOM element that has a valid parentNode, the childNodes array of the parentNode refers to the element and you end up with the same problem.

Cheers

Paul

Reply via email to