• If you use the attribute e.g: data-start=”0″ in the tag, the minifier will remove the value. As a result, the minified code looks like this – data-start .This causes big problems.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @al5dy

    I am sorry about the issue you are having with the HTML minifier and I am happy to assist you with this.
    First, thank you for bringing this to our attention. We’ve checked this and we can confirm regression.
    We’ve already fixed this and you can get the fix in our Github public repository!
    Please let us know if this fixes your issue.
    Once again thank you for bringing this to our attention and thank you for your patience!

    HTML minify caused problems with our websites also (carousels messed up and broken layout). Please let us know if there is an update available.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ucsendre

    When did those issues start to occur? Have you updated to the latest 0.11.0?
    If you have the latest 0.11.0 version can you please apply the fix provided in the previous message in our GitHub repository?

    Hello,
    The plugin was updated to 0.11.0 version today.
    I do not know how to apply this fix fromgithub as on my installation there is no “qa” folder inside the “w3-total-cache” plugin folder.
    Do I only have to update the first file (lib/Minify/Minify/HTML.php) ?

    I have updated the file /wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php and it seems to be OK now.
    Please submit an official update if no other issues are pending now.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ucsendre

    Thank you for the information. We just released 0.11.0 but we’ll release the patch fix as soon as possible.
    Once again thank you for the information and your patience!

    I replace :

    if ( empty( $m[3] ) ) {

    to:
    if ( $m[3] === '' ) {

    in lib/Minify/Minify/HTML.php and get value=”0″ back.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issues with the HTML minifier’ is closed to new replies.