{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/dom/issues/215","repository_url":"https://api.github.com/repos/whatwg/dom","labels_url":"https://api.github.com/repos/whatwg/dom/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/dom/issues/215/comments","events_url":"https://api.github.com/repos/whatwg/dom/issues/215/events","html_url":"https://github.com/whatwg/dom/issues/215","id":147502660,"number":215,"title":"Event delegation via EventListenerOptions","user":{"login":"josh","id":137,"avatar_url":"https://avatars.githubusercontent.com/u/137?v=3","gravatar_id":"","url":"https://api.github.com/users/josh","html_url":"https://github.com/josh","followers_url":"https://api.github.com/users/josh/followers","following_url":"https://api.github.com/users/josh/following{/other_user}","gists_url":"https://api.github.com/users/josh/gists{/gist_id}","starred_url":"https://api.github.com/users/josh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh/subscriptions","organizations_url":"https://api.github.com/users/josh/orgs","repos_url":"https://api.github.com/users/josh/repos","events_url":"https://api.github.com/users/josh/events{/privacy}","received_events_url":"https://api.github.com/users/josh/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-04-11T17:48:30Z","updated_at":"2016-04-21T23:54:58Z","closed_at":null,"body":"Event delegation is a common feature of most framework's event handling libraries. It'd be rad if it was standard in DOM events.\r\n \r\n``` js\r\nobj.addEventListener('click', ..., { matches: \".foo\" })\r\n```\r\n\r\nThings to figure out:\r\n\r\n* How `event.target` and `event.currentTarget` should be behave in this case. And if there should be a third `event.delegateTarget`.\r\n* How delegated event handlers would be invoked in respect to `bubbles: false` https://twitter.com/annevk/status/719534820569804800\r\n\r\n-\r\nCC: @annevk\r\nReferences: #207 #208 "},"comment":{"url":"https://api.github.com/repos/whatwg/dom/issues/comments/213163644","html_url":"https://github.com/whatwg/dom/issues/215#issuecomment-213163644","issue_url":"https://api.github.com/repos/whatwg/dom/issues/215","id":213163644,"user":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T23:54:58Z","updated_at":"2016-04-21T23:54:58Z","body":"@annevk Thanks for the ping. I had started preparing a response, but decided to pull in someone else with more experience in the actual implementation of jQuery's event system. You can take @gibson042's response in place of what I was going to write :-)"}}