- From: Veli Senol <notifications@github.com>
- Date: Tue, 19 Apr 2016 02:50:57 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Message-ID: <whatwg/dom/issues/232@github.com>
https://dom.spec.whatwg.org/#interface-event ``` <button id="myB">Fire Event</button> var myB = document.getElementById('myB'); function eventProps(ev) { return ev.bubbles; } myB.addEventListener('click', eventProps); // capture´s flag is false // event should bubble // click button and see return value ⇒ true // expected value myB.addEventListener('click', eventProps, true); // capture´s flag is set to true // event should bubble // click button and see return value ⇒ true // not expected value, it should be false // try a different thing function eventProps(ev) { ev.stopPropagation(); return ev.bubbles; } myB.addEventListener('click', eventProps, true); // capture´s flag is set to true // event should bubble // click button and see return value ⇒ true // not expected value, it should be false ``` --- 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/232
Received on Tuesday, 19 April 2016 09:52:14 UTC