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.)
I get that you are trying to force valid html, but that defeats the ability to create html fragments.
Consider the use case:
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.)