ancestors

return a list of all of a DOM nodes parents, optionally filtered

parent-node-selector

Given an element and a selector, find the first parent element that matches.

parent-selector

Given an element and a selector, find the first parent element that matches.