Incorrect "invalid CSS" warning for JQuery selectors
JQuery selectors allow syntax which is not valid CSS. R# generates an "invalid CSS" warning for perfectly valid JQuery selectors.
Eg:
$(this).find("option:selected[value!='']")
Warning: Syntax is not allowed in CSS.
R# 2019.2, VS2019 v16.2.1
Please sign in to leave a comment.
Hello Richard,
Thank you for the feedback.
Though it's the valid syntax, usage of :not() selector is preferable, as ReSharper does suggest.
Please refer to jQuery API doc - https://api.jquery.com/attribute-not-equal-selector/ and the following issue - https://youtrack.jetbrains.com/issue/RSRP-371078
Thank you.