Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event.cancelBubble cannot be used for stopping event propagation in Polymer #275

Closed
dfreedm opened this issue Sep 13, 2013 · 1 comment
Closed
Assignees

Comments

@dfreedm
Copy link
Member

dfreedm commented Sep 13, 2013

In IE 10, event.cancelBubble is readonly. This breaks the event coalescing mechanism in Polymer for the on-event syntax.

Here's a simple test case

var e = document.createEvent('Event');
e.initEvent('foo', true, true);
var cb = e.cancelBubble;
e.cancelBubble = !e.cancelBubble;
if (cb !== e.cancelBubble) {
  console.log('writable');
} else {
  console.log('readonly');
}

On Firefox, Safari, and Chrome: writable.
On IE: readonly.

Related to #259

@sjmiles
Copy link
Contributor

sjmiles commented Aug 18, 2014

Believe this question has died of old age.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants