Skip to content

bug with delegate events in IE11 #177

Description

@mutex12

Found a bug with delegate events in IE11.

The prefix "pre" assignment doesn't return "ms" but returns "webkit".

Causing the "matchSelector" to become undefined and this stops "delegateAction" working.

x-tag-core.js (bad)

prefix = (function () {
var keys = Object.keys(window).join();
var pre = ((keys.match(/,(ms)/) || keys.match(/,(moz)/) || keys.match(/,(O)/)) || [null, 'webkit'])[1].toLowerCase();

x-tag-components.js (good)

prefix = (function () {
var styles = win.getComputedStyle(doc.documentElement, ''),
pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions