While testing a legacy website that was initially designed for IE8 in IE11, I encountered an issue. On IE11, I am receiving an error message stating "An Error has occurred in the script on this page" when accessing a specific part of the code (it functions properly on IE8). The error points to the last line of the clientCXMLDocument.js file, but after reviewing the code, I couldn't find any apparent issues.
When disabling "Disable script debugging (Internet Explorer)" in Internet Options on IE11, the error no longer appears. However, I am curious to understand the root cause of this error.