Skip to content

In amp-story, amp-experiment is alerted by amp validator, but it work correctly. #24748

@Shagamii

Description

@Shagamii

What's the issue?

In amp stories, amp-experiment component should be allowed to use, but it is alerted by amp validator.

Related Link

contained in amp-story contained in amp-story-grid-layer
Tag 'amp-experiment' is disallowed as child of tag 'amp-story'. Child tag must be one of ['amp-analytics', 'amp-consent', 'amp-geo', 'amp-pixel', 'amp-sidebar', 'amp-story-access', 'amp-story-auto-ads', 'amp-story-bookend', 'amp-story-page']. The tag 'script' may not appear as a descendant of tag 'amp-story-grid-layer'.

However, amp-experiment work correctly.
amp-x-ui-experiment attributes are given to body

How do we reproduce the issue?

  1. add amp-experiment component url
  2. Following this example, write amp-experiment contained in amp-story or amp-story-grid-layer.

What browsers are affected?

chrome extension version 1.1.4
amphtml-validator

Which AMP version is affected?

1909181902540

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions