Safari (version 16) does not support TrustedTypes and safevalues thus falls back to its own implementation (HtmlImpl).
But HtmlImpl is only working in nodejs environments as it checks for an environment variable via process.env (see html_impl.ts:20)
When using safevalues in Safari, this only leads to the error message 'ReferenceError: Can't find variable: process'.
Safari (version 16) does not support TrustedTypes and
safevaluesthus falls back to its own implementation (HtmlImpl).But
HtmlImplis only working in nodejs environments as it checks for an environment variable viaprocess.env(see html_impl.ts:20)When using
safevaluesin Safari, this only leads to the error message 'ReferenceError: Can't find variable: process'.