You can compare DOM elements by identiy, e.g. `equals( someElement, $(selector)[ 0 ] )`. Don't compare jQuery objects.