Wednesday, June 29, 2011

Dom Node is Unique

Here is an interesting fact about DOM nodes. When you are moving a node from one parent to another parent, you don't have to remove it from first parent. Yes! you read it right. You don't have to remove it from first parent secondParent.appendChild(domNode) will do the needful. Since DOM nodes are unique, they can be there only at one place at a time.