-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMP Validator considers a reference to template script[type=text/plain] an error #26676
Comments
cc @ampproject/wg-caching |
Sorry for the delay. Here's a minimal test case. This requirement was added in #24267 (from http://cl/264646527); it seems it was too strict. The solution is to add
But first we need to make sure that all the dependents know how to find templates in script elements. |
Yes all of amp-date-display 0.1, amp-date-display 0.2, amp-list 0.1, and amp-date-countdown 0.1 seem to support script element templates. |
OK, fix is in |
@twifkak thank you very much! |
What's the issue?
When referenced from
<amp-list ... template="my-template"></amp-list>
to<script id="my-template" type="text/plain" template="amp-mustache"> ... </template>
AMP Validator showing error "Attribute 'template' in tag 'amp-list' contains a value that does not match any other tags on the page".However, everything will work, but the page will be deleted from Google AMP Cache due to this error.
How do we reproduce the issue?
AMP Validator will point to a line with
amp-list
referring to the templatescript[type=text/plain]
by iditems-scripted
. However, everything will work.Source and Screenshots
Source test script: amp-mustache.html.zip
The text was updated successfully, but these errors were encountered: