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

Commits on Nov 3, 2020

  1. 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
    honeybadgerdontcare authored and amaltas committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    d140723 View commit details
    Browse the repository at this point in the history
  2. 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
    honeybadgerdontcare authored and amaltas committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    1666f40 View commit details
    Browse the repository at this point in the history