Skip to content

Force amp-img > noscript > img fallbacks to have HTTPS src/srcset #2126

@westonruter

Description

@westonruter

If an image is in post content with an http protocol, this will persist into the noscript > img fallback when it is converted to amp-img (see #1832). While an amp-img allows http protocol, the noscript > img does not. See fix to AMP spec here ampproject/amphtml#21686. To prevent a lot of validation errors from appearing for sites that have HTTP images, we should consider automatically converting the noscript > img elements to HTTPS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions