amphtml
amphtml copied to clipboard
amp-state: JSON descendant and src attribute should not be mutually exclusive
Now that we allow binding to [src] on amp-state components with or without the src attribute, we should probably remove the requirement that an amp-state has a JSON descendant or the src attribute, but not both.
/cc @choumx
@ericlindley-g mentioned that it would be nice to have inline JSON as a fallback for XHR failure case.
/cc @sebastianbenz
@choumx That's definitely one of the motivating use cases here. XHR would take precedence over JSON, allowing for unchanging or fallback data in the child JSON.