I'm starting to explore the possibilities offered by AMP and I have implemented a couple of features. They all work fine when I load them but when I use the validator proposed by Google (https://search.google.com/test/amp), I get a bunch of error messages that I haven't managed to fix.
- The mandatory tag 'head > style[amp-boilerplate]' is missing or incorrect.
Well, that's strange because I have copied/pasted exactly what was in the documentation and still, the validator doesn't find it in my code. You can check it by yourself here: http://www.gpu-central.com/en/
- The mandatory tag 'noscript enclosure for boilerplate' is missing or incorrect.
Here is another example of something I copied in my code but the validator doesn't find it
- The tag 'head > style[amp-boilerplate]' is missing or incorrect, but required by 'noscript > style[amp-boilerplate]'.
Same as above
- The parent tag of tag 'meta name=viewport' is 'body', but it can only be 'head'.
The parent of viewport is head but apparently the validator doesn't see it
It looks like their regex can't find the right tags in my code but I don't really see why.
Do you have any idea?
Thanks
Laurent