Open belakm opened 11 months ago
Hi there, thanks for this nice and simple crate!
Since I ran into the exact same issue as described by @belakm and this thread remained unanswered, I decided to quickly put together a fix. PR #161
Hey thanks for the fix and very nicely detailed issue - I left a comment in your PR just honing the API a bit :)
Description
When using .printhtml() method on a table, it doesnt work correctly for titles. It inserts
<td>
elements into<th>
elements, treating<th>
as<tr>
and<td>
as<th>
.Current solution around this is to treat table headers as just a row as those seem to get printed just fine.
Example snippet:
it renders the below table as such in HTML:
The correct way for table headers would be:
Chrome based browsers try their best to render this and they somehow get it, but it is skewed because of the empty
<th>
element: