Suddenly I’m experiencing something strange with document.getElementsByClassName in my website.
Here is what happened:
I am running an aspx website on IIS7.0 where some parts of my JavaScript code uses document.getElementsByClassName. I never experienced any problems with this on Firefox, Chrome or IE8+
Today, I’m migrating my website to a new server, which runs IIS7.0 as well.
I copied my website, and suddenly document.getElementsByClassName is not recognized any more by IE8+ (it works normally in Chrome and Firefox though...)
I know there is a workaround for this issue described here: javascript document.getElementsByClassName compatibility with IE but that is not the question.
My question is: how is it possible that document.getElementsByClassName no longer works, while I just copied my website?
Is their something to be changed on the new server, IIS, … ?
Many thanks,