• Resolved ylsem

    (@ylsem)


    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

    (@domainsupport)

    Hello,

    Please see this thread for more information.

    Oliver

    Thread Starter ylsem

    (@ylsem)

    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

    (@domainsupport)

    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

    (@ylsem)

    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

    (@domainsupport)

    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.