Hello team.
We are actively evaluating upgrade from current Cells library 24.10 to a newer version (25.12) and noticed the following issue:
In some cases the generated HTML contains an ‘orphan’ style tag at the end (right before closing tag).
Note that this issue did not exist in the older Cells library version 24.10.
Is that a known issue and could it present a problem when generated html is added to the Word document via builder.insertHtml api?
Attached archive HtmlFromExcel_orphanTag.7z illustrating the issue contains:
AutoFilter.xlsx - input Excel worksheet;
AutoFilter-v24.10.0.html - output HTML generated using version 24.10;
AutoFilter-v25.12.0.html - output HTML generated using newer version 25.12;
HtmlFromExcel_AutoFilter.java - sample java program demonstrating the issue.
Thank you.
HtmlFromExcel_orphanTag.7z (17.3 KB)
@oraspose
You reported an issue where Excel to HTML conversion in Aspose.Cells version 25.12 generates an orphan </style> tag at the end of the HTML output, which was not present in version 24.10 . You are also concerned whether this could cause problems when inserting the HTML into a Word document using the builder.insertHtml API.
This issue appears to be a regression introduced between versions 24.10 and 25.12 . While we cannot confirm the exact root cause without further investigation, such orphan tags can potentially lead to HTML parsing issues or unexpected rendering behavior in some environments, including when used with Aspose.Words’ insertHtml API.
To help resolve this, please consider:
- Verifying if the issue persists in the latest stable version of Aspose.Cells.
- Providing a minimal reproducible example (if not already included) for internal testing.
- Confirming whether the orphan tag affects rendering or functionality in your specific use case.
A support engineer will follow up in this thread to investigate further.
@oraspose,
Thanks for providing us template Excel file, output HTMLs and sample code snippet.
After initial testing, I am able to reproduce the issue as you mentioned by using your template Excel file and sample code snippet. I found content has some orphan “</style>” tag unnecessarily in Excel to HTML conversion.
We require thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSJAVA-46624
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Thank you for the quick reply.
Just concerned if this issue might present unexpected consequences when inserting produced HTML into Word (so far did not noticed any).
@oraspose
Please spare us little time to evaluate/investigate why was the orphan “</style>” tag in the output HTML at the first place. Also, we will also evaluate if there is any drawback when inserting the HTML into a Word document. We will get back to you with complete updates soon.
By the way, if you have reservations and concerns, you may manually remove those orphan(s) tags in code by yourselves for the time being.
@oraspose,
We are pleased to inform you that your issue has been resolved. The fix will be included in an upcoming release (Aspose.Cells v26.2) that we plan to release in the first half of February 2026. You will be notified when the next version is released.
The result after applying the fix is attached for your review.
output.zip (2.8 KB)
The issues you have found earlier (filed as CELLSJAVA-46624) have been fixed in Aspose.Cells for Java 26.2.