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

RSRP-288219: "Elements not allowed in context" inspection should understand asp.net PlaceHolder

$
0
0
Reporter Aakash Mehendale (aakashm) Aakash Mehendale (aakashm)
Created Feb 9, 2012 2:17:52 PM
Updated Feb 9, 2012 7:30:01 PM
Priority Critical
Type Bug
Fix versions Next, Next Dev11, Next Major
State Submitted
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Subsystem Language - ASP.NET
Affected versions 6.1
Fixed in build No Fixed in build
This markup in an ASP.NET file:

    <ul>
        <asp:PlaceHolder runat="server" ID="plhDynamicItems" />

        <li>
            Fixed item
        </li>
    </ul>
    </div>


causes the <asp:PlaceHolder element to be flagged with the inspection <ul> contains items other than <li>. However, at execution time, the place holder will be populated by code behind with <li> elements, creating a valid <ul>.

R# should I think be able to understand that a PlaceHolder becomes other elements at execution time, although defining the rule exactly might be a bit difficult...

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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