Skip to content

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

Description

@dfreedm

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

Activity

  1. ghost assigned on Sep 25, 2013
  2. ghost assigned on Sep 25, 2013
  3. ghost assigned on Sep 25, 2013
  4. sjmiles commented on Aug 18, 2014

    @sjmiles
    Contributor

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions