don't check for document but check if tagName exists