Title: Amp validation issues
Last modified: November 27, 2019

---

# Amp validation issues

 *  Resolved [hycent](https://wordpress.org/support/users/hycent/)
 * (@hycent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/)
 * Hello guys, I installed the amp plugin some weeks back and I have some issues
   I’ll appreciate if you can help me fix.
 * My search console showed.
 * The attribute ‘frameborder’ in tag ‘amp-iframe’ is set to the invalid value ”.
 * The attribute ‘frameborder’ in tag ‘iframe’ is set to the invalid value ”.
 * The error effects 45 pages and I have verified the errors via amp validator.
 * I will appreciate it if you can help me fix these issue. I have attached a URL
   to a page with such an issue, I believe if if I fix these one I can fix the rest.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-validation-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12182772)
 * In the non-AMP version of that page, I can see an `iframe` defined as:
 *     ```
       <iframe
       style="width: 100%; max-width: 660px; overflow: hidden; background: transparent;" src=https://embed.music.apple.com/us/album/boyfriend-single/1474647483 height=450 frameborder sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"></iframe>
       ```
   
 * Note the `frameborder` attribute has no value provided. Even so, if I try that
   my machine I get this result:
 * `<amp-iframe src="https://embed.music.apple.com/us/album/boyfriend-single/1474647483"
   height="450" frameborder="0" sandbox="allow-forms allow-popups allow-same-origin
   allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-
   user-activation" layout="fixed-height" width="auto" class="amp-wp-a2db037">...
   </amp-iframe>`
 * So the value is getting supplied. Nevertheless, your site is removing the value
   from the attribute. I also see that all attributes have quotes being removed.
 * Do you have some optimization plugin or server module that is doing this? It 
   seems to be making the pages invalid AMP.
 *  Thread Starter [hycent](https://wordpress.org/support/users/hycent/)
 * (@hycent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12183293)
 * I am not sure, the only optimization plugins I have is:
 * W3 total cache
 * Other plugins on my site include:
    Ads inserter Ads for wp AdSense invalid click
   protector Amp Better WordPress google sitemap Classic editor GDPR cookie consent
   Glue for yoast Inline related post Jetpack One signal Powerkit Seo framework 
   Seo framework manager
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12183322)
 * Ok, please try deactivating W3 Total Cache and see if that eliminates the issue.
   If so, there is probably a way to configure the plugin to not minify the HTML.
 *  Thread Starter [hycent](https://wordpress.org/support/users/hycent/)
 * (@hycent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12190016)
 * Sorry for the late reply, w3 total cache was causing the error, it was not only
   striping my iframes of ‘frameborder’ but also my videos of ‘name’, ‘description’
   etc, causing a lot of errors in my search console.
 * Everything is fine now, thank you!!!
    -  This reply was modified 6 years, 6 months ago by [hycent](https://wordpress.org/support/users/hycent/).
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12190150)
 * Excellent. I believe you’d be able to fix this also by disabling the “HTML minify”
   in the W3 Total Cache settings.
 *  [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12208957)
 * Hello [@westonruter](https://wordpress.org/support/users/westonruter/) [@hycent](https://wordpress.org/support/users/hycent/)
   
   I am Marko, W3 Total Cache support. I am sorry about the issue you are experiencing
   when HTML minify is enabled. Can you please apply this [fix](https://github.com/W3EDGE/w3-total-cache/commit/f0faeb5cc3e2b807f153327c62a8d3c365e2757a#diff-9cea5333909e4ce25c7c3a5056c00737R356):
   and replace line 356 in lib/Minify/Minify/HTML.php `if ( empty( $m[3] ) ) {` 
   with `if ( $m[3] === '' ) {`
 * Please let us know if this helps!
 *  [BibliaTodo](https://wordpress.org/support/users/bibliatodo/)
 * (@bibliatodo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12239516)
 * Tambien tengo el mismo problema, voy a intentar resolverlo con lo que describe
   [@vmarko](https://wordpress.org/support/users/vmarko/)
 *  [BibliaTodo](https://wordpress.org/support/users/bibliatodo/)
 * (@bibliatodo)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12239525)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/) , I have done what
   you recommend but you have not solved this error in the amp with the frameborder
 *  [tuxmob](https://wordpress.org/support/users/tuxmob/)
 * (@tuxmob)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12628160)
 * Moved, I put this post in the wrong place, sorry…
    -  This reply was modified 6 years, 2 months ago by [tuxmob](https://wordpress.org/support/users/tuxmob/).

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

The topic ‘Amp validation issues’ 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/)

 * 9 replies
 * 5 participants
 * Last reply from: [tuxmob](https://wordpress.org/support/users/tuxmob/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-issues/#post-12628160)
 * Status: resolved