Skip to content

Experimental amp-experiment v1.0 is added to page when stable v0.1 should be used #4628

@westonruter

Description

@westonruter

Bug Description

Originally reported in support topic.

When adding <amp-experiment> to the page, the AMP plugin will automatically add the amp-experiment component script for version 1.0. This is a problem because the this version 1.0 of amp-experiment is itself still experimental. The current stable version is 0.1. This issue came up before for amp-carousel, when 0.2 was made available but was still experimental: when upgrading the spec we had to force amp-carousel to be pinned at 0.1. See #3084. At a later point we then rolled-back that pinning to 0.1 so that 0.2 could be used: #3700.

I’ve created a workaround plugin which can be used to roll back the amp-experiment component script from 1.0 to 0.1 until 1.0 is stable: https://gist.github.com/westonruter/092828765f25c312e380c567f48f56e7

It's not clear when v1.0 will be made stable so we should probably implement the same pinning to v0.1 which we did for amp-carousel .

We may put this fix into the AMP plugin as well. I missed this amp-experiment version update when updating the spec so I’ll make a note of looking out for this in the future.

Originally introduced here (a year ago): https://github.com/ampproject/amp-wp/pull/2297/files#r416008874.

For tracking issue to make amp-experiment v1.0 stable, see ampproject/amphtml#21705.

Expected Behaviour

amp-experiment v0.1 should be added to the page not v1.0.

Steps to reproduce

Add <amp-experiment> to the page.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions