ampproject / ampproject/amphtml
AMP doesn't recognize programmatic changes to HTML markup
Open
Component: amp-bind
P3: When Possible
Stale
Type: Bug
WG: bento
WG: runtime
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Previously verified by @nainar, hoping to get some help here.
Full demo Stackblitz: https://stackblitz.com/edit/shopsheriff-amp-bind-error?file=index.html
When creating AMP pages using a dynamic page-builder, such as the editor we've built for AMP on Shopify, dynamic HTML injection typically updates a page.
When doing so, AMP state values break. All elements that rely on state become static.
The Stackblitz has two complete examples of this behaviour.
Contributor guide
Assessment
This issue has not been assessed yet.