Reporter | Andrea Sciamanna (sciamannikoo) |
---|---|
Created | Jan 18, 2012 2:53:39 PM |
Updated | Jan 20, 2012 8:40:01 PM |
Priority | Critical |
Type | Bug |
Fix versions | Next Major |
State | Open |
Assignee | Dmitry Osinovsky (Dmitry.Osinovsky) |
Subsystem | Code Analysis |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
I've noticed that when having an html list (e.g. an unordered list), if using a foreach statement inside to build the list items, I always get a warning saying that "<ul> contains elements other than <li> or <li> is unenclosed".
A typical sample code:
Provided option is to surround the code with "<li>", but there is no need for that.
A typical sample code:
<ul id="sample-container"> @foreach (var link in links) { <li class="sample-item"> @link </li> } </ul>
Provided option is to surround the code with "<li>", but there is no need for that.