HTML5-Progress-polyfill icon indicating copy to clipboard operation
HTML5-Progress-polyfill copied to clipboard

IE <= 9 failure

Open OlsonDev opened this issue 12 years ago • 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.

OlsonDev avatar Aug 01 '13 19:08 OlsonDev