HTML row after a nested table is added to the nested table when optional </td></tr> are omitted

Hi GemBox Team,

some e-mails omit the optional </td></tr> end tags of a cell that contains a nested table, which is weird but valid according to HTML Standard. The conversion seems to add the following row to the nested table instead of the outer table. This breaks the column widths, when we convert the HTML body of an e-mail to a picture the content of the nested table may become completely invisible.

Tested with GemBox.Bundle 2026.11.104 (also 2026.6.136), .NET 10.

Example HTML:

<html>
<body>
<table width="500">
  <tr>
    <td>
      <table width="500">
        <tr><td width="10" style="background:#ddd"></td><td>Item A</td><td>Item B</td><td>Item C</td></tr>
      </table>
  <tr><td>This text follows the inner table. It is long enough to show how its width ends up in the first column of the inner table.</td></tr>
</table>
</body>
</html>

This direct conversion code

var document = DocumentModel.Load("input.html");
document.Save("output.png");

creates this picture:

Instead of how it is shown in the browser:

image

Could you have a look at it?

Kind regards
Sarah

Hi Sarah,

Please try again with this NuGet package:

Install-Package GemBox.Document -Version 2026.11.122

Note that this is a hidden (unlisted) version. To install it, you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Does this solve your issue?

Regards,
Mario

Hi Mario,

thank you for the fix, it works!

Regards
Sarah