You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect output when parsing minified HTML data including a table with a footer.
The minified output is generated by WebMarkupMin. Chrome is able to display the minified output correctly, so I believe the output from that library is correct. The minified HTML removes end tags, and I believe HAP is not re-adding them in the correct location.
The relevant part of the minified input is <td>Text<tfoot>
I believe this is relying on the fact that tfoot can only be a child of table to skip the closing tags for td, tr, and tbody. This is what Chrome does - it places the tfoot after the tbody element.
HAP's output is to put the tfoot as a child of td - <td>Text<tfoot><tr><td colspan="3">Footer</td></tr></tfoot></td>
3. Any further technical details
Add any relevant detail can help us, such as:
HAP version: 1.11.62
NET version: .NET 6.0.32
WebMarkupMin.Core: 2.17.0
The text was updated successfully, but these errors were encountered:
Thank you for reporting. Indeed, I don't think HAP currently supports foot correctly. I don't remember having added any code related to it when we fixed recently some issue on the thead and tbody.
1. Description
Incorrect output when parsing minified HTML data including a table with a footer.
The minified output is generated by WebMarkupMin. Chrome is able to display the minified output correctly, so I believe the output from that library is correct. The minified HTML removes end tags, and I believe HAP is not re-adding them in the correct location.
2. Fiddle or Project
Fiddle: https://dotnetfiddle.net/c3wmTU
The relevant part of the minified input is
<td>Text<tfoot>
I believe this is relying on the fact that tfoot can only be a child of table to skip the closing tags for td, tr, and tbody. This is what Chrome does - it places the tfoot after the tbody element.
HAP's output is to put the tfoot as a child of td -
<td>Text<tfoot><tr><td colspan="3">Footer</td></tr></tfoot></td>
3. Any further technical details
Add any relevant detail can help us, such as:
The text was updated successfully, but these errors were encountered: