Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-275174: Code Analysis incorrectly reports error "Cannot resolve symbol" on an id= attribute of a simple tag

$
0
0
Reporter Andre Marion (oakmario) Andre Marion (oakmario)
Created Aug 30, 2011 1:46:34 AM
Updated Mar 21, 2012 9:09:55 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Valentin Kipiatkov (valentin)
Subsystem Code Analysis - Find Code Issues
Affected versions 6.0
Fixed in build No Fixed in build
Inside an ASP.NET masterpage, the code analysis is giving errors about id= attributes of simple <span> tags that are inside asp:LinkButton controls. Here's an example:

<li>
<span id="test"></span>
<asp:LinkButton ID="lbTestLinkButton" runat="server">
            <span id="txt-program">Program Setup</span>
         </asp:LinkButton>
</li>

The first <span> for id="test" is good (no errors reported), but the second id="txt-program" gives the error "Cannot resolve symbol 'txt-program'". This is not an error as the asp:LinkButton control will render as an <a> tag which is an inline element and the <span> tag is also an inline element and you can have inline inside inline.

Please fix this incorrect error message.

Thanks.

Andre

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>