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
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