Skip to content

Google AMP validation errors "Invalid attribute values: type=text/javascript" and "Incorrectly nested tags: body > script" #105

@kkranzo

Description

@kkranzo

I just received emails from Google this morning after they tested several of my sites that have the amp-wp plugin installed. Below are the errors that were received for pretty much all the AMP pages on my sites. So the wp-amp plugin must not be setting things up correctly.

  • Error in schema.org NewsArticle
  • Invalid attribute value (type=text/javascript, allowfullscreen=allowfullscreen, etc.)
  • Prohibited tag (img)
  • Stylesheet CDATA attribute missing or invalid (Disallowed @import in CSS)
  • Incorrectly nested tag (body > script)

I also received this error on a few pages on all my sites as well

  • Required attribute missing (height)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions