LeaVerou/HTML5-Progress-polyfill

IE <= 9 failure

OlsonDev opened this issue · 0 comments

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.