Bug 853456 - Walk up DOM tree to find target of links. r=mfinkle