kotlinx.html
kotlinx.html copied to clipboard
Should TH be an block tag?
TD extends HtmBlockTag while TH extends HtmlInlineTag. Is that correct?
<td>
and <tr>
are neither phrasing nor flow content tags so should not inherit none of these interfaces
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.
<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.