closing tag in a razor view
hi,
i just installed r# 6.0.2116.37, and i'm working in a razor view in asp.net mv 3.
i have this
<TABLE class="adminform" width="100%"> <TBODY> @foreach (Gruppo gruppo in gruppi) { if (colonna == 0) { temp = rigaPara ? "row0" : "row1"; @:<tr class="@temp"> } <text> <td width="12.5%"><INPUT id="bundle_to_promo_@gruppo.id_gruppo" class="bundle_to_promo" name="riga@Model.idPromozione_@gruppo.id_gruppo" CHECKED type="checkbox" promo_id="@Model.idPromozione" idriga="" cc="@gruppo.id_gruppo">@gruppo.cod_gruppo</td> </text> if (colonna == 7) { colonna = -1; rigaPara = !rigaPara; @:</tr> } colonna++; } </TBODY> </TABLE>
the final /tbody,/table and the following tags are marked as unmatched closing tags, but this is wrong because the view is rendered correctly.
best regards,
luca morelli
Please sign in to leave a comment.
Cluca morelli wrote:
In latest build, only closing tr tag in line markup marked as unmatched.
But this can't be fixed.
It's different tree structure on server's and client's side, before and after rendering.