I had opened a support ticket on this previously and it was paused while another issue was being looked at.
I tried to "reactivate" the ticket but got a notification that it had been closed.
Here's the link to the original support ticket: https://toolset.com/forums/topic/amp-validation-errors-due-to-div-tag-and-script-added-before-doctype-html/
Hello,
I have checked the HTML source codes of URLs you mentioned in previous thread:
view-source:hidden link
view-source:hidden link
I don't see the same problem:
there's a div tag and a script that appear before anything else on the problematic pages.
See my screenshot amp1.JPG
Is there any steps missing? is this problem resolved?
Sorry for the confusion, Luo.
I had disabled Toolset on the AMP version on the production site.
You can see the problem on the staging version:
hidden link
Thanks for the details, I can see the problem in your website, please compare the HTML source codes below two URLs:
1) Without AMP:
view-source:hidden link
Those HTML div tags are in HTML body tag, you can search below codes
<div class="tces-js-style-encoded"
2) But in the problem URL with AMP:
view-source:hidden link
Those HTML div tags are moved to above all other HTML tag:
So it is AMP plugin conducts the problem, I don't think we can fix their issue
3) In above problem URL, you should be able to see below JS errors:
hidden link
Uncaught ReferenceError: toolsetCommonEs is not defined
The AMP plugin prevents loading javascript files of Toolset Blocks plugin, for example:
hidden link
it will conducts lots of unexpected results, so I don't think AMP plugin is compatible with Toolset plugins.
Thanks, Luo. I will follow up with their support team.