Testing different methods of checking whether an element is or is in another element. Start from the position where you have jquery objects. Make === or parentNodes a function call
Comparing performance of: is() or contains() vs == or contains() vs !!closest.length vs == and parentNodes