This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Table caption rendering outside the table.

description

Hi

When i try to convert the following html to openxml the table caption is rendered outside the table. Could please help me to fix this issue.

Thanks.

The table html is
<table style="width: 136px;" border="1" cellpadding="1" cellspacing="1"><caption><div style="text-align: center;">Age of Successful Potty Training</div></caption><tbody><tr><td style="width: 58px; text-align: center;">3</td><td style="width: 65px; text-align: center;">2.8</td></tr><tr><td style="width: 58px; text-align: center;">2</td><td style="width: 65px; text-align: center;">4.1</td></tr><tr><td style="width: 58px; text-align: center;">2.5</td><td style="width: 65px; text-align: center;">3</td></tr><tr><td style="width: 58px; text-align: center;">2.75</td><td style="width: 65px; text-align: center;">2.8</td></tr><tr><td style="width: 58px; text-align: center;">2.8</td><td style="width: 65px; text-align: center;">2.65</td></tr><tr><td style="width: 58px; text-align: center;">3.9</td><td style="width: 65px; text-align: center;">3.8</td></tr><tr><td style="width: 58px; text-align: center;">3.7</td><td style="width: 65px; text-align: center;">2.8</td></tr></tbody></table>

file attachments

comments

onizet wrote Sep 26, 2016 at 4:04 PM

Hi, I'm wondering if your initial html is valid? I'm agree it's a bug and I will add a check.
But normally, <tr> should include <td>, doesn't it?

Anyway, thank you for your issue, I will fix it soon.

wrote Sep 27, 2016 at 8:26 AM

Resolved with changeset 91048: Ensure a cell exists in a row before adding the paragraph (bug #13982). Add support for html5 div (article, aside, section)

Willu wrote Oct 14, 2016 at 11:27 AM

Hi onizet the issue i reported is with a caption inside a table.

Below is the table html for your reference :
<table style="width: 136px;" border="1" cellpadding="1" cellspacing="1"><caption><div style="text-align: center;">Age of Successful Potty Training</div></caption><tbody><tr><td style="width: 58px; text-align: center;">3</td><td style="width: 65px; text-align: center;">2.8</td></tr><tr><td style="width: 58px; text-align: center;">2</td><td style="width: 65px; text-align: center;">4.1</td></tr><tr><td style="width: 58px; text-align: center;">2.5</td><td style="width: 65px; text-align: center;">3</td></tr><tr><td style="width: 58px; text-align: center;">2.75</td><td style="width: 65px; text-align: center;">2.8</td></tr><tr><td style="width: 58px; text-align: center;">2.8</td><td style="width: 65px; text-align: center;">2.65</td></tr><tr><td style="width: 58px; text-align: center;">3.9</td><td style="width: 65px; text-align: center;">3.8</td></tr><tr><td style="width: 58px; text-align: center;">3.7</td><td style="width: 65px; text-align: center;">2.8</td></tr></tbody></table>

onizet wrote Oct 14, 2016 at 11:31 AM

** Closed by onizet 9/27/2016 12:26 AM

wrote Oct 14, 2016 at 11:31 AM

Willu wrote Oct 14, 2016 at 1:42 PM

wrote Oct 14, 2016 at 1:42 PM