[whatwg/dom] " readonly attribute boolean bubbles;" (#232)

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