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

Should TH be an block tag?

Open StokeMasterJack opened this issue 7 years ago • 3 comments

TD extends HtmBlockTag while TH extends HtmlInlineTag. Is that correct?

StokeMasterJack avatar Jul 14 '17 17:07 StokeMasterJack

<td> and <tr> are neither phrasing nor flow content tags so should not inherit none of these interfaces

cy6erGn0m avatar Nov 07 '17 11:11 cy6erGn0m

Because of this issue, it is unable to put div into th. It is valid, however div extension requires FlowContent and TH class does not implement it.

imanushin avatar Nov 21 '19 18:11 imanushin

<td> and <tr> are neither phrasing nor flow content tags so should not inherit none of these interfaces

I believe that's partially incorrect. I've been looking at the spec which says it allows Flow content, but with no header, footer, sectioning content, or heading content descendants. For ease of use, it probably makes sense to have th extend flow content even though some tags would be invalid.

SUPERCILEX avatar Aug 17 '20 19:08 SUPERCILEX