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.
CopyIdToNameAttribute-StructuredPattern.png

Thanks,
Josh

3 comments
Comment actions Permalink

Hi Josh,

Could you please specify ReSharper version you are using?

Thanks!

0
Comment actions Permalink

It's in the tags.  R# 7.1 on VS2010.

0
Comment actions Permalink

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!

0

Please sign in to leave a comment.