Support » Plugin: W3 Total Cache » Minify HTML creates invalid HTML if line break is used instead of space

  • Hi!

    I’ve found an incompatibility with another plugin caused by the HTML minifier.

    It is converting:

    <p class="cptch_block"><span
    
    				class="cptch_wrap cptch_ajax_wrap"
    
    				data-cptch-form="wp_comments"
    
    				data-cptch-input="cptch_number"
    
    				data-cptch-class="cptch_wp_comments">
    
    					<noscript>Afin de pouvoir ignorer le CAPTCHA, merci d'autoriser le JavaScript</noscript>
    
    				</span></p>

    to

    <p
    class="cptch_block"><spanclass="cptch_wrap cptch_ajax_wrap"data-cptch-form="wp_comments"data-cptch-input="cptch_number"data-cptch-class="cptch_wp_comments"><noscript>Afin de pouvoir ignorer le CAPTCHA, merci d'autoriser le JavaScript</noscript></span></p>

    I’ve tested this code in multiple online HTML minifiers and some are minifying correctly and others are not so it must be an edge case.

  • The topic ‘Minify HTML creates invalid HTML if line break is used instead of space’ is closed to new replies.