Closed guardrex closed 4 years ago
The Virtualize component allows you to customize the placeholder to be used, which is div
by default. Use the Placeholder
parameter to configure it.
Doesn't seem like the presence/absence of <Placeholder>
affects this ...
<table>
<Virtualize Items="@employees" Context="employee">
<ItemContent>
<tr>
<td>@employee.FirstName</td>
<td>@employee.LastName</td>
</tr>
</ItemContent>
<Placeholder>
Loading…
</Placeholder>
</Virtualize>
</table>
<div>
s aren't valid child elements of <table>
...
<table>
<!--!-->
<div style="height: 0px;" _bl_2=""></div>
<tr>
<td>Sally</td>
<!--!-->
<td>Hurricane</td>
</tr>
<tr>
<td>Big</td>
<!--!-->
<td>Mess</td>
</tr>
<div style="height: 0px;" _bl_3=""></div>
</table>
Describe the bug
The
Virtualize
component adds<div>
tags around rendered item template content. When creating a set of list items or table rows, the resultant markup is an HTML spec violation.To Reproduce
Result ...
Exceptions (if any)
None
Further technical details
Using the .NET CLI in a Windows command shell.