Tries to return a HTMLElement when given jQuery, dom or normal elements