kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

TR shouldn't use TBODY as a receiver

Open reubenfirmin opened this issue 8 months ago • 1 comments

I get that you are trying to force valid html, but that defeats the ability to create html fragments.

Consider the use case:

  • I have a table of the first N search results
  • I'm using HTMX's reveal to dynamically append additional rows of results (using hx-swap = afterend on the tbody)

Because of the way TR is defined, I cannot dynamically generate a list of TRs, which htmx will take care of appending. (Instead I have to create my own custom element for this, as a workaround, which is sub-par.)

reubenfirmin avatar Jun 14 '24 14:06 reubenfirmin