Traverse up the DOM until finding and returning an element with the expected attribute.