I have been having this problem in IE. I have two divs which I use to drag selected elements from one to another. Lets say I have a child element (also a div) in div1 and so
Are you sure it isn't dying on:
children[i].childNodes[0].name=toLocation;
What are you trying to accomplish with this line?
Seriously, try to comment it out. I don't even think it is what you think it is - isn't the right property called nodeName?