Carl D.L Carl D.L - 1 year ago 201
Javascript Question

amp-live-list fails validation

I am trying to use the

component but I get this error in the console :

The tag 'script' is disallowed except in specific forms.

I already have this list of scripts on my page with no errors :

<script async custom-element="amp-carousel" src=""></script>
<script async custom-element="amp-twitter" src=""></script>
<script async custom-element="amp-youtube" src=""></script>
<script async custom-element="amp-instagram" src=""></script>
<script async custom-element="amp-pinterest" src=""></script>
<script async custom-element="amp-soundcloud" src=""></script>
<script async custom-element="amp-vimeo" src=""></script>
<script async custom-element="amp-vine" src=""></script>
<script async custom-element="amp-user-notification" src=""></script>
<script async custom-element="amp-analytics" src=""></script>
<script async custom-element="amp-sidebar" src=""></script>

BUT it fails when I add the script for

<script async custom-element="amp-live-list" src=""></script>

Since this component is still in experimental mode, I have tried this :


With no success.

Answer Source

As stated in the AMP Experimental Components Page:

Any AMP file that includes experimental features will fail AMP validation. Remove these experimental components for production-ready AMP documents.

So regardless of whether or not you have AMP.toggleExperiment('amp-live-list');, the validator will fire an error if you include the script for <amp-live-list>.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download