Embed Block: AMP Compatibility Workaround #3258
Labels
AMP Format
Issues that need to be addressed in the AMP story format
AMP Output
Issues related to AMP output and validation
Group: WordPress
Changes related to WordPress or Gutenberg integration
Status: Not Implemented
Issue/PR we will (likely) not implement
Type: Enhancement
New feature or improvement of an existing feature
Feature Description
The
<amp-story-player>
component is not yet AMP compatible, which is why for example the AMP plugin is removing it from the page when using Standard mode.To work around this for the time being, the idea is to use
<amp-iframe>
instead.Basically, instead of using
<amp-story-player>
directly we would use<amp-iframe>
to embed a document that contains nothing but the player.The crux is creating such a document in a secure way, i.e. it should probably only allow loading the player with the block's actual attributes, and not just any arbitrary data.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
Implementation Brief
The text was updated successfully, but these errors were encountered: