Yes, the act of appending the child to head takes it away from tempDiv.