Skip to content

IE <= 9 failure #15

@OlsonDev

Description

@OlsonDev

I have a page using KnockoutJS. This polyfill breaks because of the implementation of isInited(). I'm assuming KO is cloning the element somehow that's not compatible with your polyfill.

The current implementation looks like this:

isInited: function(progress) {
    return progress.getAttribute('role') === 'progressbar';
}

I changed it to look like this and it fixed it:

isInited: function(progress) {
    return 'position' in progress;
}

I'd submit a pull request but I'm not certain this is the best solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions