Does this remove the child from `tempDiv`? If not, how does the while loop exit?