Skip to content

amp-ima-video returns error when not used in current document #20432

@cycleos

Description

@cycleos

What's the issue?

If amp-ima-video is loaded on a page, but not actually used, this breaks the AMP validation.
This is different behavior from amp-video, which can be loaded without having actual video on the page.
Implementing amp-ima-video load only on pages with video could be quite complicated on certain CMS-es.

How do we reproduce the issue?

  1. Create sample AMP page and include amp-ima-video without video
  2. Try to pass validation
  3. Validation fails.

If you repeat, but with actual video, validation passes.

In contrast:

  1. Create sample AMP page and include amp-video without video
  2. Try to pass validation
  3. Validation passes without or with video.

What browsers are affected?

All browsers

Which AMP version is affected?

Current version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions