Skip to content

Trusted Types support in swg-js #2746

@hartmannr76

Description

@hartmannr76

When running any of the swg.js binaries with Trusted Types enabled on a page, this breaks. There are a handful of places where we set DOM values using sink API's that are blocked with this mode enabled which may prevent other services using this.

To resolve, we should follow the steps in understanding what lines are using invalid methods, and import a library like SafeValues to allow this to use trusted types before assignment.

More details about this can also be seen in the amphtml repo issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions