improve link hijacking to include a search up the DOM tree in case targets were wrapped