Title: AMP errors
Last modified: July 14, 2020

---

# AMP errors

 *  Resolved [ylsem](https://wordpress.org/support/users/ylsem/)
 * (@ylsem)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/)
 * hello, I am using twenty nineteen and twenty twenty;
 * I am getting the following errors with AMP pluging:
 * Error code
    DISALLOWED_TAG Invalid markup <script … > Element attributes type
   text/javascript Element name script Parent element body Text content
 *  (function() {
    document.getElementsByClassName(‘site-info’)[0].innerHTML = document.
   getElementsByClassName(‘site-info’)[0].innerHTML.split(‘,\n\t\t\t\t\t\t’).join(”);})();
 * kindly advise

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

 *  Plugin Author [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * (@domainsupport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/#post-13122717)
 * Hello,
 * Please see [this thread for more information](https://wordpress.org/support/topic/options-for-twenty-twenty-and-amp/).
 * Oliver
 *  Thread Starter [ylsem](https://wordpress.org/support/users/ylsem/)
 * (@ylsem)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/#post-13122875)
 * have an update for you;
 * the error is under twenty nineteen and not under twenty twenty;
 * do not know what combination of themes and plugins make it happen;
 * btw, yours is the only plugin that works as advertised; I hope you continue to
   improve the plugin and not take the road ‘this may not work for you’
 * thanks
 *  Plugin Author [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * (@domainsupport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/#post-13123056)
 * I’m afraid the plugins you mention require small snippets of JavaScript to be
   loaded in the body of the HTML document. This is not an error.
 * Sorry!
 * Oliver
 *  Thread Starter [ylsem](https://wordpress.org/support/users/ylsem/)
 * (@ylsem)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/#post-13123151)
 * may have a point;
 * the script is being marked as invalid for AMP; and then showing up in error index
 * because of the nature of programming, error for environment may not be an error
   in another;
 * it shows as error in twenty nineteen but not in twenty twenty;
 * anyways, I am bringing it to your attention;
 * good luck…
 *  Plugin Author [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * (@domainsupport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/#post-13125013)
 * Thank you for letting us know. If our position changes in the future, for example
   if we find a way to re-locate the JavaScript without impacting on the plugin’s
   functionality then we will update this thread.
 * Oliver

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

The topic ‘AMP errors’ is closed to new replies.

 * ![](https://ps.w.org/remove-powered-by-wp/assets/icon-256x256.jpg?rev=1830045)
 * [Remove "Powered by WordPress"](https://wordpress.org/plugins/remove-powered-by-wp/)
 * [Support Threads](https://wordpress.org/support/plugin/remove-powered-by-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/remove-powered-by-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remove-powered-by-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remove-powered-by-wp/reviews/)

## Tags

 * [Twenty Nineteen](https://wordpress.org/support/topic-tag/twenty-nineteen/)
 * [twenty twenty](https://wordpress.org/support/topic-tag/twenty-twenty/)

 * 5 replies
 * 2 participants
 * Last reply from: [Oliver Campion](https://wordpress.org/support/users/domainsupport/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/amp-errors-15/#post-13125013)
 * Status: resolved