Upon debugging an ASP.NET WebForms project, I'm shown an error dialog in Visual Studio 2013.
The Browser Link feature includes a handful of pre-generated or runtime-generated JavaScript.
JavaScript critical error at line xyz column abc in http://local.host/foo/browserLink\n\nSCRIPT1010:
Expected Identifier
This is on setting the line label.for = id;
How can I avoid this error?
You'll find the problem is the new Browser link feature.
You can disable it, it solved my issue with IE7 and below when debugging.
for is a reserved word. You either have to choose another name or do label["for"] = id;
IE doesn't accept reserved javascript words.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With