IE8 Object doesn't support property or method 'indexOf'

916 views
Skip to first unread message

Sergey Z

unread,
Aug 17, 2015, 4:28:06 AM8/17/15
to reCAPTCHA
Hi, today I'm getting following error in IE8: Object doesn't support property or method 'indexOf'
File: recaptcha__en.js, Line: 151, Column: 470 - that maps to following code return a.ua?0<=U(a.ua,5).indexOf("JS_THIRDEYE"):!1}.


On Friday recaptcha was working. Looks like code is missing polyfill for ES5 array methods for IE8. Can this be fixed, please?

Thank you.

Olivier L.

unread,
Aug 17, 2015, 9:57:28 AM8/17/15
to reCAPTCHA
Hi,
I have the exact same issue with recaptcha__fr.js.
Look like the polyfill exist but don't work for this part of code.

var z = Array.prototype,
        La = z.indexOf ? function(a, b, c) {
            return z.indexOf.call(a, b, c)
        } : function(a, b, c) {
            c = null == c ? 0 : 0 > c ? Math.max(0, a.length + c) : c;
            if (r(a)) return r(b) && 1 == b.length ? a.indexOf(b, c) : -1;
            for (; c < a.length; c++)
                if (c in a && a[c] === b) return c;
            return -1

webinte...@healthalliance.org

unread,
Aug 17, 2015, 3:41:11 PM8/17/15
to reCAPTCHA
Having the same issue today as well.

webinte...@healthalliance.org

unread,
Aug 17, 2015, 4:12:33 PM8/17/15
to reCAPTCHA
Works in IE8, not in emulating from IE11.

Paul Martin

unread,
Aug 18, 2015, 6:20:17 AM8/18/15
to reCAPTCHA
This error is occurring because IE8 does not support indexOf(), see here: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf

Hopefully they can rework this code to not use indexOf().

amit motgi

unread,
Aug 19, 2015, 7:34:48 PM8/19/15
to reCAPTCHA
I am also seeing the same issue. Would be great if they could fix this one.

Paul Stephenson

unread,
Aug 19, 2015, 8:51:15 PM8/19/15
to reCAPTCHA
Also seeing this problem on a site that was seemingly working in IE8 until recently.

David Muñoz Camarero

unread,
Aug 20, 2015, 6:16:23 AM8/20/15
to reCAPTCHA
Same problem. I have to use reCaptcha old in IE8 while this is broken :(.

Kyoungmin Kim

unread,
Aug 20, 2015, 4:08:45 PM8/20/15
to reCAPTCHA
same problem.
I'm considering a migration to reCAPTCHA OLD version.

Elton Koltun

unread,
Aug 24, 2015, 8:45:54 AM8/24/15
to reCAPTCHA
I'm having the same problem, it's the second time it occurs

Webpage error details


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Mon, 24 Aug 2015 12:37:12 UTC


Message: Script error
Line: 0
Char: 0
Code: 0
URI
: https://www.gstatic.com/recaptcha/api2/r20150817145345/recaptcha__en.js

radiant

unread,
Aug 25, 2015, 2:54:24 AM8/25/15
to reCAPTCHA
Anyone have a workaround to solve Object doesn't support property or method 'indexOf' issue on IE8? It's still breaking and reCaptcha is not appearing. Do the reCaptcha devs respond to this forums and take up the issues or is there a way to report the error to the core development team? 

Thanks,
Radiant

Calvin M. Cole

unread,
Aug 28, 2015, 12:57:54 AM8/28/15
to reCAPTCHA
I'm having the same issue. Has anyone been able to resolve?


On Monday, August 17, 2015 at 3:28:06 AM UTC-5, Sergey Z wrote:

Clinton Ward

unread,
Aug 28, 2015, 4:30:02 AM8/28/15
to reCAPTCHA
a lot of people reporting this issue. I hope it's resolved soon

Paul Martin

unread,
Aug 28, 2015, 5:08:40 AM8/28/15
to reCAPTCHA
Interestingly the browser requirements state that only the two most recent versions of each browser are supported.


Hopefully it still gets resolved though as IE8 is still fairly commonly used.
Reply all
Reply to author
Forward
0 new messages