Amp Validator False Result With "amp-skimlinks" Component

Hello,

We’re seeing a pernicious false negative with Cloudflare’s AMP validation.

Sample page:

For our AMP pages containing the “amp-skimlinks” component, we get this output from the Cloudflare AMP validation API:

{
“errors”: [
{
“code”: “DISALLOWED_SCRIPT_TAG”,
“col”: 17847,
“error”: “Custom JavaScript is not allowed.”,
“help”: “https://www.ampproject.org/docs/reference/spec#html-tags”,
“line”: 56
},
{
“code”: “DISALLOWED_TAG”,
“col”: 41,
“error”: “The tag ‘amp-skimlinks’ is disallowed.”,
“line”: 73
}
],
“source”: “http://www.silive.com/news/2019/07/in-class-students-share-the-gift-of-music.html?outputType=amp”,
“valid”: false,
“version”: “1530043289240”
}

However, checking the above “source” url via Google’s AMP validation here:

https://search.google.com/test/amp

…shows a fully validating page.

Any ideas why this discrepancy would be happening?

Thanks, ~Jeff

Hi,

I had a closer look at the issue and this doesn’t seem to be directly related to amp-skimlinks.
I think it’s a more general issue with the cloudflare AMP validator API, they probably are using an outdated version of the AMP validator. I raised the issue in the amphtml project, hopefully they can help. https://github.com/ampproject/amphtml/issues/23296 .


Vincent
Software engineer at Skimlinks

1 Like