When running my Razor-based Web project under VS 2013, using IIS, I am seeing the following error in browserLink:
Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: index
Turning off browserLink gets rid of the error. But what is the real fix?
For a similar question, see here:
Page uses an invalid or unsupported form of compression when debugging ASP.NET MVC app with Visual Studio 2013 Preview
It appears that this issue only appears when using browserLink and would not normally show up in production.
I found a discussion about it here. which says:
The issue is known bug in jQuery which is internally used in the Browser Link functionality. When selecting elements which contains ":" in its id, jQuery does not return element. The reason for the problem is that jQuery has some predefined pseudo-selectors and “:00” for example is not a valid selector.
The Browser Link script tries to find our detail tables elements by its id (the detail table id contains ":"), jQuery does not return element and the Browser Link scripts throws an error that the character sequence is not recognized.
As this issue is still not fixed in the latest version of jQuery the only workaround for now is to disable the Browser Link feature in VS 2013.
The options given for disabling browserLink given include the following options:
vs:EnableBrowserLink to false.debug=false in web.config file.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