Compare the complete element instead of only its name