HTML structured pattern should not match, but does. Why?
I have coded a structured pattern that should be detecting <input/> elements with an id attribute but no name attribute. All the details are in the image below. There is a regex match on the attribute names that should not match if the 'name' attribute already exists. However, it does not fail, but instead matches an element like <input id="foo" name="foo" />. Also, it does not seem to matter if I toggle the regex between "should" and "should NOT". It matches either way.
Thanks,
Josh
Please sign in to leave a comment.
Hi Josh,
Could you please specify ReSharper version you are using?
Thanks!
It's in the tags. R# 7.1 on VS2010.
Hi,
I've checked that and confirmed it as a bug in ReSharper on SSR subsystem. It is now logged in YouTrack here for further fixing: http://youtrack.jetbrains.com/issue/RSRP-338717
Thank you for your report!