gitmyhub

dom-closest

JavaScript ★ 23 updated 10y ago

For a given DOM element, find the first ancestor that matches a given CSS selector.

No plain-English explanation yet — one is being written right now. Check back in a minute.