Table inside LI tag is not working

Hi ,
We are using Aspose word 17.2 DLL and we have been communicated that , the issue table inside li has been addressed in 17.2 version.
But still it’s not working as expected.
When we give html which has table inside li to aspose.word , then aspose generated html will have table outside li.
Also if we modify aspose generated HTML, by adding table inside li , then alignment is not coming properly when we view it in browser.
Please check attached file for same.
Appreciate your help!

Hi Agam,

Thanks for your inquiry. Had this issue been logged before? Please share the issue ID and your related thread link here for reference.

Please also create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing. Thanks for your cooperation.

Best regards,

Hi Haffez,

Please find attached ZIP file. contains windows application .

Please follow below steps :

create temp folder under C drive.

UnZip the file
Run the Application
Select file type e.g : pdf or word
Click Export button.

Go to temp folder and check sample1.html and sample1.pdf is generated if you have selected PDF type.

The problem is when we have table inside li and when we give this HTML to Aspose then
Final HTML generated by Aspose will have table outside li. The Aspose is throwing table outside li.

Please check Input HTML inside HTMLcontain.cs class in attached application.
then check aspose generated HTML and PDF or World in C://Temp folder.
sample1.html and sample1.padf.

The contain shown in PDF should be look same as attached screen shot (TableInsideLi.PNG)

Table should come in front of bullet not below bullet.

Thanks,
Mahesh

Hi Mahesh,

Thanks for your inquiry.

Mahesh:
When we give html which has table inside li to aspose.word , then aspose generated html will have table outside li.

While using the latest version of Aspose.Words i.e. 17.2.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-14925. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

But, even after the resolution of this issue the output may not be what you’re expecting. This is because when you open your “InputHtmlToAspose” with chrome browser, you’ll see something like shown in attached screenshot.

Please attach your expected Word document that you create from this “InputHtmlToAspose.html” file and that shows the correct behavior here for our reference. We will investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document using Microsoft Word.

Best regards,

Hi Mahesh,

Regarding WORDSNET-14925, our product team has completed the work on your issue and has come to a conclusion that this issue is not a bug in Aspose.Words but an expected behavior. Your issue (WORDSNET-14925) will be closed with ‘Not a Bug’ resolution.

This is because, tables cannot be placed inside list items because of limitations of the Aspose.Words’ document model. This case is not supported by Aspose.Words. We apologize for your inconvenience.

Best regards,