Open mbrodesser-Igalia opened 3 months ago
All callers of "Process value with a default policy" could pass it a string, so no stringification would be needed.
Does that not require defining the stringification in https://w3c.github.io/trusted-types/dist/spec/#process-value-with-a-default-policy-algorithm anyway? This is the only callsite that does not already pass a string.
Re: defining stringification for TrustedType objects, the spec uses the WebIDL stringifiers - they are not linked to WebIDL definitions, but that syntax seems to be recommended by Bikeshed.
Is there a more idiomatic way to define what should happen when a TrustedType needs converting to a string (by extracting a value from its data
slot?)
cc @smaug----
In https://w3c.github.io/trusted-types/dist/spec/#abstract-opdef-process-value-with-a-default-policy step 2.