ampproject / ampproject/amphtml

AMP doesn't recognize programmatic changes to HTML markup

Open
#27,918 15 comments 0 reactions 1 assignee Claimed by @samouri View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.