Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync for validator/cpp/engine #30994

Merged
merged 2 commits into from Nov 4, 2020
Merged

Sync for validator/cpp/engine #30994

merged 2 commits into from Nov 4, 2020

Conversation

amaltas
Copy link
Contributor

@amaltas amaltas commented Nov 3, 2020

This is an automatically generated pull request.

This is part 1 of 2.

With the introduction of module/nomodule the file extension for scripts may
be either `.js` or `.mjs` and not always `.js`. This change will allow for the
simplification of handling `also_requires_tag` and `also_requires_tag_warning`.
The latter is used by `amp-ad` and `amp-video`.

The purpose is to allow a single `also_requires_tag_warning` to cover all
variations of script types (regular, module, nomodule, module SXG) with a
single expression (`amp-ad extension script`). The engine will see this and
apply it to any extension script type. That change will come in part 2.

This changes:

`amp-extname extension .js script` to `amp-extname extension script`
`amphtml engine v0.js script` to `amphtml engine script`

PiperOrigin-RevId: 339147096
This is part 2 of 2. Part 1 is cl/339147096.

The purpose is to allow a single `also_requires_tag_warning` to cover all
variations of script types (regular, module, nomodule, module SXG) with a
single expression (e.g. `amp-ad extension script`). The engine will see
`extension script` and apply it to any extension script type with the same
extension spec name.

PiperOrigin-RevId: 339898343
@amaltas amaltas merged commit 0222243 into master Nov 4, 2020
@rsimha rsimha deleted the piper_339961808 branch November 18, 2020 20:57
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
* Remove the file extension for script tags in spec_names/messages (`.js`)

This is part 1 of 2.

With the introduction of module/nomodule the file extension for scripts may
be either `.js` or `.mjs` and not always `.js`. This change will allow for the
simplification of handling `also_requires_tag` and `also_requires_tag_warning`.
The latter is used by `amp-ad` and `amp-video`.

The purpose is to allow a single `also_requires_tag_warning` to cover all
variations of script types (regular, module, nomodule, module SXG) with a
single expression (`amp-ad extension script`). The engine will see this and
apply it to any extension script type. That change will come in part 2.

This changes:

`amp-extname extension .js script` to `amp-extname extension script`
`amphtml engine v0.js script` to `amphtml engine script`

PiperOrigin-RevId: 339147096

* Alternative tagspecs may meet also_requires_tag_warning requirements

This is part 2 of 2. Part 1 is cl/339147096.

The purpose is to allow a single `also_requires_tag_warning` to cover all
variations of script types (regular, module, nomodule, module SXG) with a
single expression (e.g. `amp-ad extension script`). The engine will see
`extension script` and apply it to any extension script type with the same
extension spec name.

PiperOrigin-RevId: 339898343

Co-authored-by: honeybadgerdontcare <sedano@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants