Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 30, 2013 08:29 AM by Yanping Wang - MSFT
Jan 29, 2013 06:06 AM|LINK
While page load I am facing following error.
"Microsoft JScript runtime error: Redeclaration of const property"
Whatever variable I have used in my script are declared only one time.
Weird issue is that I am using IE9 browser here when I open site in compatibility mode it works fine without any error, however when I run application in normal mode in IE9 it throws an error.
How do I get rid of this JS error, as I mentioned this was not a problem before.
Jan 30, 2013 08:29 AM|LINK
I would like to suggest you check the answer in the following post
the solution in that post may help you.
This suggests that IE finds what it thinks is an error, so loads the page again in Quirks mode. Loading the page twice makes it think everything is declared twice. So the solution is to find what IE didn't like.
First I ran the page through the
jsLint. After all that, IE9 seemed happy. And as a bonus I have better quality code. I hope.
additionally, I'd like to suggest you check you page to use the W3C tests at
http://validator.w3.org Use the options on that page to change your DTD to a transitional DTD, you may have better outcomes.
Hope this helps, thanks.