Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browserLink error -- unsupported pseudo: index

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

like image 273
William Jockusch Avatar asked Feb 16 '26 06:02

William Jockusch


1 Answers

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:

  • Set appSetting vs:EnableBrowserLink to false.
  • Set debug=false in web.config file.
like image 75
Kyle Falconer Avatar answered Feb 21 '26 16:02

Kyle Falconer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!