glimmer-vm icon indicating copy to clipboard operation
glimmer-vm copied to clipboard

Allow to render TrustedHTML objects similar to SafeString

Open crypto opened this issue 1 year ago • 17 comments

Summary

Currently TrustedHTML objects converted to strings during rendering before hitting DOM API that means all HTML insertions handled by default policy. That prevents us from migrating to Trusted Types. This change allows to render TrustedHTML objects similar to SafeString.

Testing done

ok 2382 [integration] jit :: TrustedHTML > renders TrustedHTML similar to SafeString
ok 2383 [integration] jit :: TrustedHTML > renders TrustedHTML in attribute context as string
1..2686
# pass 2685
# skip 1
# todo 0
# fail 0

crypto avatar Feb 21 '24 07:02 crypto