Title: Validation Error
Last modified: August 24, 2016

---

# Validation Error

 *  Anonymous User 14247956
 * (@anonymized-14247956)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/validation-error-33/)
 * 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://wordpress.org/plugins/squelch-unspam/](https://wordpress.org/plugins/squelch-unspam/)

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

 *  Plugin Author [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * (@squelch)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/validation-error-33/#post-6136256)
 * Oh my apologies, WordPress.org 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)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/validation-error-33/#post-6136259)
 * Hi Matt.
    Sorry for no reply in time. I solved the issue by downgrading to version
   1.22.
 *  Plugin Author [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * (@squelch)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/validation-error-33/#post-6136260)
 * 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.

 * ![](https://ps.w.org/squelch-unspam/assets/icon-256x256.png?rev=2366670)
 * [Squelch Unspam](https://wordpress.org/plugins/squelch-unspam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/squelch-unspam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/squelch-unspam/)
 * [Active Topics](https://wordpress.org/support/plugin/squelch-unspam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/squelch-unspam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/squelch-unspam/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [style](https://wordpress.org/support/topic-tag/style/)
 * [Unspam](https://wordpress.org/support/topic-tag/unspam/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/validation-error-33/#post-6136260)
 * Status: not resolved