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-script: Support creating all AMP elements e.g. amp-date-countdown #25344
Comments
Thanks for filing this issue. Currently, only creating |
Great, thank you! |
Can we have support for |
I just needed to created an |
We also would like to be able to dynamically create |
Please add ability to create |
I would need to add |
Please add |
Were you able to do it? I'm also looking for a way to dynamically assign src of amp-iframe. |
I tried to add images with a lightbox using amp-script, but the lightbox does not work: #27808 I think this is an important feature. |
Need the ability to create amp-script at run time for analytics to dynamically add the src value for amp-script tags. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
What's the issue?
When trying to add amp-date-countdown dynamically using amp-script, a "Sanitized node" error is printed to the console, and it isn't added to the DOM.
How do we reproduce the issue?
JSBin: https://jsbin.com/tenozoxoko/edit?html,output
Create a page that uses amp-script, and within the script, dynamically add an amp-date-countdown to the DOM.
What browsers are affected?
All browsers appear to be affected.
Which AMP version is affected?
Version 1910251950120.
The text was updated successfully, but these errors were encountered: