- From: fvsch <notifications@github.com>
- Date: Thu, 05 May 2016 13:21:53 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc:
Received on Thursday, 5 May 2016 20:22:36 UTC
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