Your implementation [doesn't match jQuery](https://api.jquery.com/parentsUntil/). Your implementation goes up to `context` and filters by `selector`. jQuery version goes up to 1st argument and filters by optional 2nd argument.