Skip to content

<amp-script> must not be empty #24265

@fstanis

Description

@fstanis

What's the issue?

If <amp-script> is empty (doesn't contain any initial content), then no attempt is made to load it and no error is throws.

How do we reproduce the issue?

<amp-script layout="container" src="/anything.js"></amp-script>

This should either:

  • Make an attempt to fetch /anything.js
  • Result in runtime error
  • Result in validator error

Which AMP version is affected?

1908222134250

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions