I am trying to get indexOf to work in IE8, but I cannot seem to get it to happen. I have tried including the es5-shim using:
<!--[if lt IE 9]><script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/2.0.8/es5-shim.min.js"></script><![endif]-->
I also tried using underscore.js. I put that as the first javascript file that is called on the page, but I still get the error in IE8 "Object doesn't support this property or method" when it hits an indexOf() call.
The page I am working on is old and has frames and there is no DOCTYPE declared at the top of the page. Is this why this doesn't work? I have tried adding in a DOCTYPE, but that seems to break all of the formatting of the pages.
Any ideas? What other info do you need? Thanks so much.