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

I certainly don't want to prevent you from prototyping this, but I don't understand what is the added value of the proposed event bubbling sequence. I would love if someone could explain to me in which cases is the proposed sequence is useful!

I am asking because EventTarget is a generic interface implemented by things for which css selectors do not mean anything, and if the proposed event bubbling is not something that can be proven to be an advantage, I have a tough time grasping why ```document.addEventListener('click', e => { ... }, { matches: "a[href]" })``` is perceived as better than ```document.addEventListener('click', e => { if(e.target.matches("a[href]") { ... } });```


-- 
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-310811276

Received on Saturday, 24 June 2017 03:42:37 UTC