Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Internet Explorer 11 and older compatibility.

Open pitns opened this issue 10 years ago • 7 comments

Guys,

We have been notified by our users who use prebid 0.9 with Internet Explorer 11 and older that some functionalities are not working correctly. We investigated it and found out that prebid library is adding methods into Array prototype object therefore every array that is using loop format "for in" is going to loop through those methods as well as they were their elements causing very difficult to debug and address issues. We had to disable prebid features for all IE users for now. Can that be addressed?

Example: Include prebid library. var testArray = ['bold', 'italic', 'underline', 'justifyleft']; for (test in testArray) { alert(test); //Example: Return "find" index too which is not present in the array on IE. }

The bug and potentioal fix are explained on below page: http://stackoverflow.com/questions/35135127/adding-a-function-to-array-prototype-in-ie-results-in-it-being-pushed-in-to-ever

Can you please look into it and let us know if anything can be done to fix it on your end?

pitns avatar Jul 21 '16 19:07 pitns

@pitns Thanks for the info. This looks particularly nasty. We'll review and let you know. We would make a change to master, as we won't be releasing a prior version. Thanks

mkendall07 avatar Jul 22 '16 13:07 mkendall07

This is resolved in master

mkendall07 avatar Jul 31 '16 13:07 mkendall07

Curious, did this resolve this issue as well? screen shot on 2016-08-04 at 09-32-55

I can open a new issue if not. IE 11, Prebid 10.

internetchris avatar Aug 04 '16 15:08 internetchris

@internetchris the includes polyfill fix for IE has been merged to master with PR #464.

protonate avatar Aug 04 '16 16:08 protonate

Hi Nate,

Indeed, thank you. It seems this uses Object.defineProperty, which doesn't appear to be supported in IE8. Is this an oversight or is prebid ending support for IE8?

Comment on supported browsers: https://github.com/prebid/Prebid.js/issues/445

Browser Support: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty

On Thu, Aug 4, 2016 at 10:10 AM, Nate Guisinger [email protected] wrote:

@internetchris https://github.com/internetchris the includes polyfill fix for IE has been merged to master with PR #464 https://github.com/prebid/Prebid.js/pull/464.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prebid/Prebid.js/issues/463#issuecomment-237602228, or mute the thread https://github.com/notifications/unsubscribe-auth/AACxWmoQdRSkNPBknJlYG7PoP-wZfuHyks5qcg8HgaJpZM4JSKMm .

internetchris avatar Aug 04 '16 19:08 internetchris

@protonate - I wanted to come back to my question from nearly a year ago. I've noticed that IE8 is still an issue with Object.defineProperty. Are there any plans to fix this, or another issue thread that describes whether or not Prebid will continue to support IE8? As a developer, I would love if IE8 went away, but we still have an international user base that uses IE8 and thus affects ad revenue.

screen shot on 2017-06-06 at 14-28-23

internetchris avatar Jun 06 '17 21:06 internetchris

Hi @internetchris our browser support has been at IE9+ for some time: https://github.com/prebid/Prebid.js#supported-browsers

We definitely don't want to bloat the core codebase with polyfills, shims & fixes for IE8 or even IE9 at this point. That said for pubs where IE8 support is wanted perhaps a prebid-ie8 repo/package could be included in the build. Creating this would likely need to largely depend on the community as core team resources are stretched as it is.

protonate avatar Jun 06 '17 22:06 protonate