This project has moved. For the latest updates, please go here.
1

Closed

Minify HTML problem

description

Hello,

i have problem with minify HTML with this code
<table>
    <tbody>
        <tr>
            <td>aaa</td>
            <td>bbb</td>
            <td>ccc</td>
        </tr>
        <tr>
            <td>aa0</td>
            <td>bb0</td>
            <td>cc0</td>
        </tr>
        <tr>
            <td>aa1</td>
            <td>bb1</td>
            <td>cc1</td>
        </tr>
    </tbody>
</table>
After i used new HtmlMinifier().Minify(HtmlContent).MinifiedContent i recieved code "<table><tr><td>aaa<td>bbb<td>ccc<tr><td>aa0<td>bb0<td>cc0<tr><td>aa1<td>bb1<td>cc1</table>". Maybe i doing something wrong, but i have problem only with minifing HTML code with table elements.

Thank you for help
Closed Oct 17, 2016 at 1:26 PM by Taritsyn

comments

Taritsyn wrote Oct 17, 2016 at 1:26 PM

Hello, Martin!

Removing of optional end tags is not an bug, but an feature. You can manage this feature by using the following configuration properties: RemoveOptionalEndTags and PreservableOptionalTagList.

P.S.: You have reported about bug to the old repository of WebMarkupMin. The new repository is located on GitHub.