Forums

[resolved] [Plugin: WP Captcha-Free] html validation of plugin code (3 posts)

  1. JEDs
    Member
    Posted 2 years ago #

    I am using the Firefox validator extension, which shows errors from installing this plugin. I have fixed the errors by editing captcha-free.php lines 96-97 to be:

    <div><input type="hidden" id="captchafree" name="captchafree" value="" /></div>
    <noscript><p><strong>Please note: JavaScript is required to post comments.</strong></p></noscript><p><small> <a href="http://wordpresssupplies.com/wordpress-plugins/captcha-free/">Spam protection by WP Captcha-Free</a></small></p>

    I would be interested to know if this will impair functionality of the plugin, and also if anyone has a better idea.

    -JEDs

    http://wordpress.org/extend/plugins/wp-captcha-free/

  2. JEDs
    Member
    Posted 2 years ago #

    there is also a validation error caused by the comment_form hook I have not been able to fix:

    <input type="hidden" id="_wp_unfiltered_html_comment" name="_wp_unfiltered_html_comment" value="fd379d28e5" /></form>

    error:
    The mentioned element ("input") is not allowed to appear in the context in which you've placed it, the other mention elements ("p" "h1-6" "div" "pre" "address" "fieldset" "ins" "del") are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element or possibly that you've forgotten to close a previous element.

    I do not see a previous element that is not closed.

    -JEDs

  3. JEDs
    Member
    Posted 2 years ago #

    update to my last post, that error only occurs when viewing the site while logged in, so is not an issue to me.

    Maybe for someone else.

Topic Closed

This topic has been closed to new replies.

About this Topic