framework icon indicating copy to clipboard operation
framework copied to clipboard

Inline expressions shouldn’t use a wrapper span

Open mbostock opened this issue 1 year ago • 0 comments

In a case like this…

<div class="grid grid-cols-4" style="grid-auto-rows: 86px;">
  ${modes.map(mode => BigNumber(events[0][mode], {title: mode}))}
</div>

we really want to avoid the wrapper SPAN element so that each interpolated big number is a direct descending of the grid container. Maybe we can do this using document fragments? And comment nodes to denote where the fragment starts and ends?

mbostock avatar Oct 17 '23 21:10 mbostock