Title: Fails AMP validation
Last modified: February 12, 2019

---

# Fails AMP validation

 *  Resolved [bom3ac](https://wordpress.org/support/users/bom3ac/)
 * (@bom3ac)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/fails-amp-validation/)
 * Hi Team,
    When I checked each and every post on my site it is displaying following
   error.
 * There is content which fails AMP validation. However, your site is configured
   to automatically accept sanitization of the offending markup. You should review
   the issues to confirm whether or not sanitization should be accepted or rejected.
   Review issues
    Invalid elements: script Invalid attributes: defer, onload
 * And most of the error are from the plugins and the plugins are updated as well.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffails-amp-validation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/fails-amp-validation/#post-11195769)
 * I believe the Autoptimize plugin is conflicting. Please make sure you are on 
   the latest version. Otherwise, try deactivating to isolate the problem.
 * See also this PR which fixed an AMP issue with Autoptimize: [https://github.com/futtta/autoptimize/pull/223](https://github.com/futtta/autoptimize/pull/223)
 * The 2.0.1 version included this fix.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/fails-amp-validation/#post-11195841)
 * The PR is not in the released version of Autoptimize yet, but you can always 
   [download 2.5 beta from github](https://github.com/futtta/autoptimize/archive/beta.zip)
   to test/ use 🙂
 *  Thread Starter [bom3ac](https://wordpress.org/support/users/bom3ac/)
 * (@bom3ac)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/fails-amp-validation/#post-11199148)
 * Thanks [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/)
   [@westonruter](https://wordpress.org/support/users/westonruter/) it worked fine
   with the beta version.

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

The topic ‘Fails AMP validation’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [AMP validation](https://wordpress.org/support/topic-tag/amp-validation/)

 * 3 replies
 * 3 participants
 * Last reply from: [bom3ac](https://wordpress.org/support/users/bom3ac/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/fails-amp-validation/#post-11199148)
 * Status: resolved