Re: [whatwg/dom] Event delegation via EventListenerOptions (#215)

I thinks this has been clarified already but some comments talk about using `event.target.matches(delegateSelector)`, and what jQuery and probably others do is more like looking for `event.target.closest(delegateSelector)`. Just wanted to stress that.

As a front-end dev if I have `<button><span>Hey</span></button>` and use `"button"` as my `delegateSelector` for click events, I do want clicks originating on the span to trigger my callback.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/215#issuecomment-217266982

Received on Thursday, 5 May 2016 20:22:36 UTC