• Anonymous User 14247956

    (@anonymized-14247956)


    Hello.
    I’m using WordPress 4.2.2 and the latest version of this plugin (1.3) gets one validation error, as follows:

    Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)
    <style type=”text/css”>

    Here is the faulty code:

    <style type=”text/css”>
    body #commentform #l1u9y,
    body #commentform #rwzad,
    body #commentform #k7oft,
    body #commentform #yd21e {
    display: none;}
    #commentform input,
    #commentform textarea {
    display: none;}
    </style>

    How can I fix it? The solution is very simple, I suppose.
    P.S: The previous version worked fine.

    Thanks.

    https://ww.wp.xz.cn/plugins/squelch-unspam/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Lowe

    (@squelch)

    Oh my apologies, ww.wp.xz.cn didn’t notify me of this post so I’ve only just chanced upon it. Are you still having this issue? That particular error is typically indicative of an unclosed <div> tag or similar. The code being injected into your page by Unspam should not be triggering that particular warning/error.

    Thread Starter Anonymous User 14247956

    (@anonymized-14247956)

    Hi Matt.
    Sorry for no reply in time. I solved the issue by downgrading to version 1.22.

    Plugin Author Matt Lowe

    (@squelch)

    That would resolve your issue, but only because there would be no injected CSS or JS. The older versions of this plugin have some bugs that drastically reduce its effectiveness in preventing spam so it’d definitely be better to upgrade.

    If you can upgrade and then let me have a link to the page that has the problem then I can take a look into it for you. If the issue is with Unspam I can then roll out an update.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation Error’ is closed to new replies.