• Resolved PatriceF

    (@patricef)


    Hello,
    The code below breaks w3c validation due to balise </p> misplaced, it must be after label end tag and not after div end tag :

    function insert_captcha_custom_login($cust_html_code, $args)
    {
            global $aio_wp_security;
            $cap_form = '<p class="aiowps-captcha"><label>'.__('Please enter an answer in digits:','all-in-one-wp-security-and-firewall').'</label>';
    
            $cap_form .= '<div class="aiowps-captcha-equation"><strong>';
            $maths_question_c output = $aio_wp_security->captcha_obj->generate_maths_question();
            $cap_form .= $maths_question_output . '</strong></div></p>';
            $cust_html_code .= $cap_form;
            return $cust_html_code;
    }

    Can anyone correct this in core porgram.
    thx

    • This topic was modified 6 years, 4 months ago by PatriceF.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CAPTCHA breaks W3C markup validation’ is closed to new replies.