Kotlin / kotlinx.html

Kotlin DSL for HTML
Apache License 2.0
1.63k stars 133 forks source link

TR shouldn't use TBODY as a receiver #283

Open reubenfirmin opened 5 months ago

reubenfirmin commented 5 months ago

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.)

rromanowski-figure commented 2 months ago

I agree it's less than ideal, perhaps a type of "fragment" receiver that any component can be defined under.

Another workaround I see in the wiki is to use a filter if you want to build the necesary parents than define the ones you want to strip out