Skip to content

Evaluate uses of meta.getAttribute('content') #26652

@mdmower

Description

@mdmower

Several extensions and services query AMP documents for special <meta name="..." content="..."> tags to perform tasks different than default. In #26534, amp-script failed to work in PWAs because <meta> tags are lost when an AMP document is loaded in the ShadowRoot. Less severe issues may be present elsewhere and have gone unnoticed.

There are new .getMetaByName() methods that work for all AmpDoc types (single, shadow, fie) and which may be worthwhile to adopt in other extensions and services. A couple of greps (grep -lr "getAttribute('content')" and grep -lr 'meta\[name') work as a starting point to investigate:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions