If the appended element was a child of another element it was removed from that element. This caused console.logging a child element to remove it from the parent.